Quantcast
Channel: Wonder about some #define tricks - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

Wonder 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
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>