disable assert() with -DNDEBUG even if -D_DEBUG is set

the game code asserts all the time, but seems to work when disabling
assertions..
so make sure assertions are really disabled with NDEBUG, even if _DEBUG
is set (like it is in debug builds).
this way I can at least get an unoptimized debug build that can actually
be tested.
This commit is contained in:
Daniel Gibson 2018-09-02 01:19:37 +02:00
parent b41ce2627c
commit b5e8db875e

View file

@ -122,7 +122,7 @@ void SixtetsForInt( byte *out, int src);
int IntForSixtets( byte *in );
#ifdef _DEBUG
#if defined(_DEBUG) && !defined(NDEBUG)
void AssertFailed( const char *file, int line, const char *expression );
#undef assert
#define assert( X ) if ( X ) { } else AssertFailed( __FILE__, __LINE__, #X )