From: Martin Baute Date: Mon, 7 Mar 2016 20:09:34 +0000 (+0100) Subject: The other code did not work, and ((void)0) is actually specified in the standard. X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=0b6ba474c9a13ef218554539106c0a52776ac189 The other code did not work, and ((void)0) is actually specified in the standard. --- diff --git a/includes/assert.h b/includes/assert.h index e2618a0..44b30b8 100644 --- a/includes/assert.h +++ b/includes/assert.h @@ -42,10 +42,7 @@ void _PDCLIB_assert89( char const * const ); #undef assert #ifdef NDEBUG -#define assert( ignore ) do { \ - if(!(expression)) { _PDCLIB_UNREACHABLE; } \ - } while(0) - +#define assert( ignore ) ( (void) 0 ) #elif _PDCLIB_C_MIN(99) #define assert(expression) \ do { if(!(expression)) { \