Answer by swestrup for Wonder about some #define tricks
Two answer your questions in order:is the pasting operator, and so its not really doing anything there. I think (couldn't find any references) that there are non-standard versions of it that will eat a...
View ArticleAnswer by Alex Martelli for Wonder about some #define tricks
The ... identify a variadic macro per the C99 standard. The token to indicate expansion of "all remaining argument" in the right hand side, per the standard, is __VA_ARGS__ -- I imagine you're using...
View ArticleWonder about some #define tricks
While reading codes of my group project, I come across many DEFINEs, and some of them seems strange. To generalize it, please look at the following 2 examples. Example 1: #define SNPRINTF(dst, fmt,...
View Article
More Pages to Explore .....