hassert: implemented without println
This commit is contained in:
parent
3addade4c6
commit
f664e8fbce
2
hyper.h
2
hyper.h
|
@ -890,7 +890,7 @@ static inline void set_flag(flagtype& f, flagtype which, bool b) {
|
||||||
#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)) printf("%s:%d:%s: assertion failed: %s\n", __FILE__, __LINE__, __func__, #condition)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define IS(z) = z
|
#define IS(z) = z
|
||||||
|
|
Loading…
Reference in New Issue