proper statement definition of assert
This commit is contained in:
parent
fe39fe1932
commit
4b0cd3217f
2
src/h.h
2
src/h.h
@ -331,7 +331,7 @@ typedef struct Arr {
|
|||||||
#define NOGC_S cbqn_NOGC_start()
|
#define NOGC_S cbqn_NOGC_start()
|
||||||
#define NOGC_E cbqn_noAlloc=false
|
#define NOGC_E cbqn_noAlloc=false
|
||||||
#else
|
#else
|
||||||
#define assert(X) {if (!(X)) __builtin_unreachable();}
|
#define assert(X) do {if (!(X)) __builtin_unreachable();} while(0)
|
||||||
#define VALIDATE(X) (X)
|
#define VALIDATE(X) (X)
|
||||||
#define VALIDATEP(X) (X)
|
#define VALIDATEP(X) (X)
|
||||||
#define UD __builtin_unreachable()
|
#define UD __builtin_unreachable()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user