From 8b8277d2940a8745f85d86a9af3ad6970b5fa52c Mon Sep 17 00:00:00 2001 From: solar Date: Fri, 21 Nov 2003 18:05:58 +0000 Subject: [PATCH] Adapted void expression syntax from standard docs. --- includes/assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0