##__VA_ARGS__ not swallowing comma when zero args under C99

后端 未结 3 492
囚心锁ツ
囚心锁ツ 2021-01-24 09:13

I\'d like to use a macro like the following:

#define x(...) y(a,##__VA_ARGS__,b)

To expand like so:

x();   ->   y(a,b);
x(1)         


        
3条回答
提交回复
热议问题