Revert "no assert/debugprint in release builds"

This reverts commit 6b7afed5e7.
This commit is contained in:
Tim Felgentreff 2022-07-26 17:58:40 +02:00
parent 83a0c3ccf2
commit a2ddef78de

View file

@ -139,22 +139,14 @@ extern void PrintOnStdOut(const char *format, ...);
/**
** Assert a condition. If cond is not true abort with file,line.
*/
#ifdef DEBUG
#define Assert(cond) \
do { if (EnableAssert && !(cond)) { AbortAt(__FILE__, __LINE__, __func__, #cond); }} while (0)
#else
#define Assert(cond)
#endif
/**
** Print debug information with function name.
*/
#ifdef DEBUG
#define DebugPrint(args) \
do { if (EnableDebugPrint) { PrintFunction(); PrintOnStdOut(args); } } while (0)
#else
#define DebugPrint(args)
#endif
/*============================================================================
== Definitions