3 ms·
Another way is to just use a macro that returns its argument: #define WRAP(...) __VA_ARGS__ SOME_MACRO(WRAP(a, b, c), d) But I wanted something that l
by mikeash 12y ago
Another way is to just use a macro that returns its argument:
#define WRAP(...) __VA_ARGS__
SOME_MACRO(WRAP(a, b, c), d)
But I wanted something that let me just wrap the thing in parentheses without anything extra. Foolhardy, since it was a bunch of work and thought for an extremely small gain, but at least I got a fun article out of it.