wmail: debug macro fixes.
This commit is contained in:
parent
98872a4c14
commit
1b6f872f07
|
@ -86,14 +86,16 @@ char *MakePathName( const char *dir, const char *file );
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
||||||
void TRACE( const char *fmt, ... );
|
void TRACE( const char *fmt, ... );
|
||||||
#define ASSERT( EXPR ) ((void)(EXPR ? 0 : ABORT( "%s(%i): Assertion failed: \"%s\"\n", __FILE__, __LINE__, #EXPR )))
|
#define ASSERT( EXPR ) do { \
|
||||||
#define VERIFY( EXPR ) ASSERT( EXPR )
|
if ( !(EXPR) ) \
|
||||||
|
ABORT( "%s(%i): Assertion failed: \"%s\"\n", \
|
||||||
|
__FILE__, __LINE__, #EXPR ); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define TRACE( fmt... )
|
#define TRACE( fmt... )
|
||||||
#define ASSERT( EXPR )
|
#define ASSERT( EXPR )
|
||||||
#define VERIFY( EXPR )
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue