提交 858df113 编写于 作者: R Rich Felker

assert() is supposed to have type void

上级 c86f2974
......@@ -5,7 +5,7 @@
#ifdef NDEBUG
#define assert(x) (void)0
#else
#define assert(x) ((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0))
#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0)))
#endif
#ifdef __cplusplus
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册