From 0b6ba474c9a13ef218554539106c0a52776ac189 Mon Sep 17 00:00:00 2001 From: Martin Baute Date: Mon, 7 Mar 2016 21:09:34 +0100 Subject: [PATCH] The other code did not work, and ((void)0) is actually specified in the standard. --- includes/assert.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)) { \ -- 2.40.0