Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 478817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:43:47+00:00 2026-05-13T00:43:47+00:00

i was looking for macro which can expand like the following: FILL_BUFF(4) should be

  • 0

i was looking for macro which can expand like the following:

FILL_BUFF(4) should be expanded as (0xFF, 0xFF, 0xFF, 0xFF)… what can be the macro written for the above expansion..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T00:43:48+00:00Added an answer on May 13, 2026 at 12:43 am

    PP got it – almost.
    Abusing the C preprocessor again. On the other hand, it deserves nothing better.

    #define FILL_BUFF(N) FILL_BUFF_ ## N
    
    #define FILL_BUFF_1 (0xFF)
    #define FILL_BUFF_2 (0xFF,0xFF)
    #define FILL_BUFF_3 (0xFF,0xFF,0xFF)
    #define FILL_BUFF_4 (0xFF,0xFF,0xFF,0xFF)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking at LESS ( http://lesscss.org/ ) which adds variables and macro
I need to write a macro that operates on bitarray looking like this: array[0]
I want to use CPU_SET , which is a glibc linux-specific macro that should
I'm looking for a tool (macro, extension) for Visual Studio 2008 that would reformat
Looking for a bit of advice on where to take a current webapp which
I'm carrying out some experiments in theorem proving with combinator logic, which is looking
I am trying to implement a macro which will allow me to run several
Looking at this page: http://www.mikeash.com/pyblog/friday-qa-2010-12-31-c-macro-tips-and-tricks.html I found this snippet of code with ^{ ...
Is there a setting in Visual Studio 2008 that I can turn on which
I have 3 tables which look like this: Location Node Sektor ----- ------- -------

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.