fixed hassert

This commit is contained in:
Zeno Rogue 2020-12-25 00:03:27 +01:00
parent b48defb5f1
commit 075d9002c2
1 changed files with 2 additions and 2 deletions

View File

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