Add DEBUG_ASSERTIONS define and enable it by default (#730)

This commit is contained in:
Gregory Heskett
2023-12-11 01:58:30 -05:00
committed by GitHub
parent 72f8ea130f
commit 4f2c48c733
3 changed files with 21 additions and 4 deletions

View File

@@ -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); \