Changed the release version of ASSERT.
This was so a variable only used in ASSERT statements will not give a warning about not being used.
This commit is contained in:
parent
2dbe5033ca
commit
1acbf07445
@ -204,7 +204,7 @@ typedef unsigned short UInt16;
|
|||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ASSERT( x ) ( !!(x) || ( LOGERROR("Assertion failed: %s, file %s, line %i", #x, __FILE__, __LINE__ ), assert(0), 0 ) )
|
#define ASSERT( x ) ( !!(x) || ( LOGERROR("Assertion failed: %s, file %s, line %i", #x, __FILE__, __LINE__ ), assert(0), 0 ) )
|
||||||
#else
|
#else
|
||||||
#define ASSERT(x) ((void)0)
|
#define ASSERT(x) ((void)(x))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Pretty much the same as ASSERT() but stays in Release builds
|
// Pretty much the same as ASSERT() but stays in Release builds
|
||||||
|
Loading…
Reference in New Issue
Block a user