From f4fb58d0ff1603eabc63e6b1e96dd2ba3d32aab9 Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 2 Jun 2009 19:11:09 +0000 Subject: [PATCH] Define empty macros as {} to avoid problem with empty macros inside if statements. --- desmume/src/debug.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/desmume/src/debug.h b/desmume/src/debug.h index daba337ce..99dea52fc 100644 --- a/desmume/src/debug.h +++ b/desmume/src/debug.h @@ -56,56 +56,56 @@ public: #if defined(DEBUG) || defined(GPUDEBUG) || defined(DIVDEBUG) || defined(SQRTDEBUG) || defined(DMADEBUG) || defined(DEVELOPER) #define LOGC(channel, ...) Logger::log(channel, __FILE__, __LINE__, __VA_ARGS__) #else -#define LOGC(...) +#define LOGC(...) {} #endif #ifdef DEBUG #define LOG(...) LOGC(0, __VA_ARGS__) #else -#define LOG(...) +#define LOG(...) {} #endif #ifdef GPUDEBUG #define GPULOG(...) LOGC(1, __VA_ARGS__) #else -#define GPULOG(...) +#define GPULOG(...) {} #endif #ifdef DIVDEBUG #define DIVLOG(...) LOGC(2, __VA_ARGS__) #else -#define DIVLOG(...) +#define DIVLOG(...) {} #endif #ifdef SQRTDEBUG #define SQRTLOG(...) LOGC(3, __VA_ARGS__) #else -#define SQRTLOG(...) +#define SQRTLOG(...) {} #endif #ifdef DMADEBUG #define DMALOG(...) LOGC(4, __VA_ARGS__) #else -#define DMALOG(...) +#define DMALOG(...) {} #endif #ifdef CFLASHDEBUG #define CFLASHLOG(...) LOGC(5, __VA_ARGS__) #else -#define CFLASHLOG(...) +#define CFLASHLOG(...) {} #endif #ifdef UNTESTEDOPCODELOG #define UNTESTEDOPCODELOG(...) LOGC(6, __VA_ARGS__) #else -#define UNTESTEDOPCODELOG(...) +#define UNTESTEDOPCODELOG(...) {} #endif #ifdef DEVELOPER #define PROGINFO(...) LOGC(7, __VA_ARGS__) #else -#define PROGINFO(...) +#define PROGINFO(...) {} #endif