diff --git a/inc/assert.h b/inc/assert.h index 0312334..7b038be 100644 --- a/inc/assert.h +++ b/inc/assert.h @@ -22,7 +22,7 @@ void _assert( #else // In debug mode there shouldn't be any optimizations so this should // work as a simple way to cause a trap. - #define assert(c) if (!(c)) *(volatile int *)0 = 0 + #define assert(c) do { if (!(c)) *(volatile int *)0 = 0; } while(0) #endif #else #define _static_assert _Static_assert