mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-23 13:02:18 +00:00
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:
parent
b41ce2627c
commit
b5e8db875e
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue