fix assert macro

This commit is contained in:
bumbread 2022-10-29 14:32:12 +11:00
parent 80527ed56a
commit 20dd512870
1 changed files with 1 additions and 1 deletions

View File

@ -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