warning: __VA_ARGS__ can only appear in the expansion of a C++11 variadic macro 19 | )
·
引入了zlog,之前可以,现在错误。猜测是C、C++编译不同导致的。
解决办法:
参考如下写法:
#ifdef __GNUC__
#define WY_LOG_INFO(FMT, args...) {printf(FMT, ##args );}
#else
#define WY_LOG_INFO(FMT, ...) {printf(FMT, ##__VA_ARGS__ );}
#endif
更多推荐
所有评论(0)