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
|
||||
#ifdef NDEBUG
|
||||
#define hassert(condition) if(!condition) __builtin_unreachable()
|
||||
#define hassert(condition) if(!(condition)) __builtin_unreachable()
|
||||
#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
|
||||
|
||||
#define IS(z) = z
|
||||
|
Loading…
x
Reference in New Issue
Block a user