mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-25 07:20:09 +00:00
fixed hassert
This commit is contained in:
parent
b48defb5f1
commit
075d9002c2
4
hyper.h
4
hyper.h
@ -888,9 +888,9 @@ static inline void set_flag(flagtype& f, flagtype which, bool b) {
|
|||||||
|
|
||||||
// assert macro
|
// assert macro
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
#define hassert(condition) if(!condition) __builtin_unreachable()
|
#define hassert(condition) if(!(condition)) __builtin_unreachable()
|
||||||
#else
|
#else
|
||||||
#define hassert(condition) if(condition) println(hlog, __FILE__, ":", __LINE__, ":", __func__, ": assertion failed: ", condition)
|
#define hassert(condition) if(!(condition)) println(hlog, __FILE__, ":", __LINE__, ":", __func__, ": assertion failed: ", #condition)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define IS(z) = z
|
#define IS(z) = z
|
||||||
|
Loading…
x
Reference in New Issue
Block a user