mirror of https://github.com/flysand7/ciabatta.git
fix assert macro
This commit is contained in:
parent
80527ed56a
commit
20dd512870
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue