r5sdk/r5dev/core/assert.h
Kawe Mazidjatari 99af2877a6 Tier1: fully implement bitbuf classes
All routines are now fully implemented. This was delayed on purpose as some bit buffer functions have changed due to the use of 64bit integers for sizes, and also the coord types. The porting of this has to be done carefully; all
reimplemented functions have been changed to feature 64bit integers (where necessary) for syze types, and all values in coordsize.h have been tweaked to reflect the changes in the R5 engine 1:1, allowing us to properly implement the coord bit buffer functions as well.
2024-04-05 18:02:39 +02:00

18 lines
546 B
C++

#pragma once
//#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)
# define AssertFatalMsg Assert
// TODO: this needs to go to dbg.h
# define AssertMsg(condition, ...) assert(condition)
//#endif