Revert "no assert/debugprint in release builds"
This reverts commit 6b7afed5e7
.
This commit is contained in:
parent
83a0c3ccf2
commit
a2ddef78de
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue