The MSVC compiler extends the preprocessor by emitting an empty VA_ARGS expansion as NOTHING instead of "" (double-double quotes) in the case where the argument is omitted(rather than left empty. For example:
#define M(x,VA_ARGS)
M(5,) Argument is empty, thus this should result in ""
M(5) Argument is omitted, thus this should result in nothing.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This has likely gone stale, and my employer has decided to tell customers to modify their code.
Comment Actions
I don't know? I don't have a really good way of repro'ing that. Do you have any ability to grab me a preprocessed reproducer of that one? Godbolt doesn't have Windows headers for this.