From: solar <> Date: Fri, 21 Nov 2003 18:05:58 +0000 (+0000) Subject: Adapted void expression syntax from standard docs. X-Git-Url: https://pd.if.org/git/?a=commitdiff_plain;h=8175309ab960fe0c7672e002d7ce47e551d5d916;hp=f36203b64ed60547688aeb3f614b3d1c1f581c27;p=pdclib.old 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