From: solar Date: Fri, 21 Nov 2003 18:05:58 +0000 (+0000) Subject: Adapted void expression syntax from standard docs. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=750e571eee089fb4f96f7df1323cb3b21f7fa15c;p=fw%2Fpdclib Adapted void expression syntax from standard docs. git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@5 546481bc-9713-0410-bf18-d3337bbf4a3e --- 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