Define Curmudgeonly - Flywheelsites News
The question is if users can define new macros in a macro, not if they can use macros in macros. In other words, when the compiler starts building your code, no #define statements or anything like that is left. A good way to understand what the preprocessor does to your code is to get hold of the Γ’β¬Β¦
Asked 15 years, 8 months ago modified 9 months ago viewed 51k times For example, never define a macro like this: #define danger 60 + 2 this can potentially be dangerous when we do an operation like this: Int wrong_value = danger * 2; // expecting 124 instead, def 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).
// expecting 124 instead, def 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).