Are Variadic macros nonstandard?

前端 未结 4 975
生来不讨喜
生来不讨喜 2020-12-01 23:14

For debugbuilds, I usually use Clang, as it formats warnings and errors better, and makes it a little easier to track them down, and fix them.

But recently after add

4条回答
  •  时光说笑
    2020-12-02 00:05

    Standard says in 16.3 Macro replacement:

    The identifier _ _ VA_ARGS _ _ shall occur only in the replacement-list of a function-like macro that uses the ellipsis notation in the parameters.

提交回复
热议问题