From a19d281580a03e75475085f97a7be520a82dfc63 Mon Sep 17 00:00:00 2001 From: yabause Date: Sat, 13 May 2006 22:34:38 +0000 Subject: [PATCH] Removed the NDSSystem parameter as it's a extern one. Rewrote the LOG macros so they are ANSI-compliant. --- desmume/src/debug.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/desmume/src/debug.h b/desmume/src/debug.h index f35439832..f4aa01022 100644 --- a/desmume/src/debug.h +++ b/desmume/src/debug.h @@ -28,39 +28,39 @@ void LogStart(void); void LogStop(void); #ifdef DEBUG -#define LOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r) +#define LOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__) #else -#define LOG(f, r...) +#define LOG(f, ...) #endif #ifdef GPUDEBUG -#define GPULOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r) +#define GPULOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__) #else -#define GPULOG(f, r...) +#define GPULOG(f, ...) #endif #ifdef DIVDEBUG -#define DIVLOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r) +#define DIVLOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__) #else -#define DIVLOG(f, r...) +#define DIVLOG(f, ...) #endif #ifdef SQRTDEBUG -#define SQRTLOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r) +#define SQRTLOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__) #else -#define SQRTLOG(f, r...) +#define SQRTLOG(f, ...) #endif #ifdef CARDDEBUG -#define CARDLOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r) +#define CARDLOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__) #else -#define CARDLOG(f, r...) +#define CARDLOG(f, ...) #endif #ifdef DMADEBUG -#define DMALOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r) +#define DMALOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__) #else -#define DMALOG(f, r...) +#define DMALOG(f, ...) #endif #endif