mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-22 17:37:39 +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
|
#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
|
||||||
|
Reference in New Issue
Block a user