diff options
-rw-r--r-- | kern/assert.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kern/assert.h b/kern/assert.h index b074fbb..bd2a8be 100644 --- a/kern/assert.h +++ b/kern/assert.h @@ -39,10 +39,9 @@ extern void Assert(const char *exp, const char *filename, int line) __attribute__ ((noreturn)); #define assert(ex) \ -MACRO_BEGIN \ - if (!(ex)) \ - Assert(#ex, __FILE__, __LINE__); \ -MACRO_END + ((ex) \ + ? (void) (0) \ + : Assert (#ex, __FILE__, __LINE__)) #define assert_static(x) assert(x) |