mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 17:07:40 +00:00
hassert: implemented without println
This commit is contained in:
2
hyper.h
2
hyper.h
@@ -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
|
||||
|
Reference in New Issue
Block a user