arocc icon indicating copy to clipboard operation
arocc copied to clipboard

__VA_OPT__ should be treated like a parameter

Open ehaas opened this issue 1 year ago • 0 comments

__VA_OPT__ should be stringizable and its parameters should be macro-substituted.

#define FOO BAR
#define M(x, y, ...) #__VA_OPT__(y ## x __VA_ARGS__)
M(a, b, FOO)

Should produce "ba BAR"; currently it errors with error: '#' is not followed by a macro parameter

ehaas avatar Dec 31 '24 16:12 ehaas