2022-01-14 20:45:36 +01:00
|
|
|
#pragma once
|
2023-03-18 16:45:43 +01:00
|
|
|
//#ifndef NDEBUG
|
|
|
|
//# define Assert(condition, message) \
|
|
|
|
// do { \
|
|
|
|
// if (! (condition)) { \
|
|
|
|
// std::cerr << "Assertion '" #condition "' failed in " << __FILE__ \
|
|
|
|
// << " line " << __LINE__ << ": " << message << std::endl; \
|
|
|
|
// assert(condition); \
|
|
|
|
// } \
|
|
|
|
// } while (false)
|
|
|
|
//#else
|
|
|
|
# define Assert(condition, ...) assert(condition)
|
2024-02-21 01:10:14 +01:00
|
|
|
# define AssertFatalMsg Assert
|
2024-01-04 16:08:27 +01:00
|
|
|
|
|
|
|
// TODO: this needs to go to dbg.h
|
|
|
|
# define AssertMsg(condition, ...) assert(condition)
|
2023-03-18 16:45:43 +01:00
|
|
|
//#endif
|