Define empty macros as {} to avoid problem with empty macros inside if statements.

This commit is contained in:
riccardom 2009-06-02 19:11:09 +00:00
parent 327dc2c2b9
commit f4fb58d0ff
1 changed files with 9 additions and 9 deletions

View File

@ -56,56 +56,56 @@ public:
#if defined(DEBUG) || defined(GPUDEBUG) || defined(DIVDEBUG) || defined(SQRTDEBUG) || defined(DMADEBUG) || defined(DEVELOPER) #if defined(DEBUG) || defined(GPUDEBUG) || defined(DIVDEBUG) || defined(SQRTDEBUG) || defined(DMADEBUG) || defined(DEVELOPER)
#define LOGC(channel, ...) Logger::log(channel, __FILE__, __LINE__, __VA_ARGS__) #define LOGC(channel, ...) Logger::log(channel, __FILE__, __LINE__, __VA_ARGS__)
#else #else
#define LOGC(...) #define LOGC(...) {}
#endif #endif
#ifdef DEBUG #ifdef DEBUG
#define LOG(...) LOGC(0, __VA_ARGS__) #define LOG(...) LOGC(0, __VA_ARGS__)
#else #else
#define LOG(...) #define LOG(...) {}
#endif #endif
#ifdef GPUDEBUG #ifdef GPUDEBUG
#define GPULOG(...) LOGC(1, __VA_ARGS__) #define GPULOG(...) LOGC(1, __VA_ARGS__)
#else #else
#define GPULOG(...) #define GPULOG(...) {}
#endif #endif
#ifdef DIVDEBUG #ifdef DIVDEBUG
#define DIVLOG(...) LOGC(2, __VA_ARGS__) #define DIVLOG(...) LOGC(2, __VA_ARGS__)
#else #else
#define DIVLOG(...) #define DIVLOG(...) {}
#endif #endif
#ifdef SQRTDEBUG #ifdef SQRTDEBUG
#define SQRTLOG(...) LOGC(3, __VA_ARGS__) #define SQRTLOG(...) LOGC(3, __VA_ARGS__)
#else #else
#define SQRTLOG(...) #define SQRTLOG(...) {}
#endif #endif
#ifdef DMADEBUG #ifdef DMADEBUG
#define DMALOG(...) LOGC(4, __VA_ARGS__) #define DMALOG(...) LOGC(4, __VA_ARGS__)
#else #else
#define DMALOG(...) #define DMALOG(...) {}
#endif #endif
#ifdef CFLASHDEBUG #ifdef CFLASHDEBUG
#define CFLASHLOG(...) LOGC(5, __VA_ARGS__) #define CFLASHLOG(...) LOGC(5, __VA_ARGS__)
#else #else
#define CFLASHLOG(...) #define CFLASHLOG(...) {}
#endif #endif
#ifdef UNTESTEDOPCODELOG #ifdef UNTESTEDOPCODELOG
#define UNTESTEDOPCODELOG(...) LOGC(6, __VA_ARGS__) #define UNTESTEDOPCODELOG(...) LOGC(6, __VA_ARGS__)
#else #else
#define UNTESTEDOPCODELOG(...) #define UNTESTEDOPCODELOG(...) {}
#endif #endif
#ifdef DEVELOPER #ifdef DEVELOPER
#define PROGINFO(...) LOGC(7, __VA_ARGS__) #define PROGINFO(...) LOGC(7, __VA_ARGS__)
#else #else
#define PROGINFO(...) #define PROGINFO(...) {}
#endif #endif