X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fassert.h;h=ab745db18022aeda15f1d04ba6d4ef93c82b4f9d;hb=f44076181d25dd2401d182c111330b4290a9535c;hp=bad2ccd04cf3bbc9abe39c2f26ef9b8680d60a9e;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/assert.h b/include/assert.h index bad2ccd0..ab745db1 100644 --- a/include/assert.h +++ b/include/assert.h @@ -1,9 +1,11 @@ +#include + #undef assert #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