hassert: implemented without println

This commit is contained in:
Zeno Rogue 2020-12-25 06:06:09 +01:00
parent 3addade4c6
commit f664e8fbce
1 changed files with 1 additions and 1 deletions

View File

@ -890,7 +890,7 @@ static inline void set_flag(flagtype& f, flagtype which, bool b) {
#ifdef NDEBUG
#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)) printf("%s:%d:%s: assertion failed: %s\n", __FILE__, __LINE__, __func__, #condition)
#endif
#define IS(z) = z