Add DEBUG_ASSERTIONS define and enable it by default (#730)
This commit is contained in:
1 parent
72f8ea130f
commit
4f2c48c733
3 files changed
+21
-4
No files matched your search
+1
-1
@@ -62,7 +62,7 @@ extern void __n64Assert(char *fileName, u32 lineNum, char *message);
|
||||
/**
|
||||
* Will cause a crash if cond is not true, and DEBUG is defined (allows for quick removal of littered asserts)
|
||||
*/
|
||||
#ifdef DEBUG
|
||||
#if defined(DEBUG) || defined(DEBUG_ASSERTIONS)
|
||||
#define assert(cond, message) do {\
|
||||
if ((cond) == FALSE) { \
|
||||
error(message); \
|
||||
|
||||
Reference in new issue
Block a user