From: solar Date: Fri, 21 Nov 2003 18:05:58 +0000 (+0000) Subject: Adapted void expression syntax from standard docs. X-Git-Tag: OLD~31 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=8b8277d2940a8745f85d86a9af3ad6970b5fa52c Adapted void expression syntax from standard docs. --- diff --git a/includes/assert.h b/includes/assert.h index e03baaa..f99ccd7 100644 --- a/includes/assert.h +++ b/includes/assert.h @@ -26,9 +26,9 @@ void __assert( char const * const expression, // the tested expression #undef assert #if defined NDEBUG -#define assert( x ) (void) 0 +#define assert( x ) ( (void) 0 ) #else -#define assert( x ) ( x ) ? (void) 0 \ +#define assert( x ) ( x ) ? ( (void) 0 ) \ : __assert( #x, __FILE__, __func__, __LINE__ ) #endif