How can i use #if inside #define in the c preprocessor? Asked 15 years, 8 months ago modified 9 months ago viewed 51k times As far as i know, what you're trying to do (use if statement and then return a value from a macro) isn't possible in iso c but it is somewhat possible with statement expressions (gnu extension).

A good way to understand what the preprocessor does to your code is to get hold of the Ò€¦ Is there a way to do a #define inside of another #define? Asked 15 years, 6 months ago modified 7 years ago viewed 59k times The question is if users can define new macros in a macro, not if they can use macros in macros.