Make sure the DEBUG flag is defined when building in debug mode

MSVC uses _DEBUG, unlike all of the other compilers, so we aren't
properly enabling/disabling varying bits of code that are dependent
on DEBUG being defined.
This commit is contained in:
Tim Wojtulewicz 2023-01-17 14:59:50 -07:00 committed by Tim Wojtulewicz
parent 4cb77c1743
commit 1f0860b5e2
2 changed files with 4 additions and 1 deletions

View file

@ -41,6 +41,9 @@
#include <cassert>
#ifdef ASSERT
#undef ASSERT
#endif
#define ASSERT(x) assert(x)
#define DEBUG_MSG(...) fprintf(stderr, __VA_ARGS__)
#define DEBUG_fputs fputs