Example code:
#define FOO(...) You passed: #__VA_ARGS__
FOO(1,2,3)
FOO()
Preprocess with Visual C++ (version 14 CTP), get:
You passed: "1,2,3"
You passed:
In the last line, #__VA_ARGS__
is turned into nothingness. I would prefer it turned into "".
Is there a definitive reference for what is supposed to happen? I Googled a lot but couldn't find it.
Any suggested work-around would also be useful.