wmail: only one DEBUG macro is ever defined.

This commit is contained in:
Jeremy Sowden 2019-06-07 09:52:26 +01:00 committed by Carlos R. Mafra
parent 07f158ad7e
commit 107922018b
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@
#include "common.h" #include "common.h"
#if defined(DEBUG) || defined(DEBUG2) || defined(_DEBUG) #ifdef DEBUG
void TRACE( const char *fmt, ... ) void TRACE( const char *fmt, ... )
{ {
va_list args; va_list args;

View file

@ -76,7 +76,7 @@ void ABORT( const char *fmt, ... );
void WARNING( const char *fmt, ... ); void WARNING( const char *fmt, ... );
char *MakePathName( const char *dir, const char *file ); char *MakePathName( const char *dir, const char *file );
#if defined(DEBUG) || defined(DEBUG2) || defined(_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 ) ((void)(EXPR ? 0 : ABORT( "%s(%i): Assertion failed: \"%s\"\n", __FILE__, __LINE__, #EXPR )))