Removed the NDSSystem parameter as it's a extern one.
Rewrote the LOG macros so they are ANSI-compliant.
This commit is contained in:
parent
bde51f84e4
commit
a19d281580
|
@ -28,39 +28,39 @@ void LogStart(void);
|
||||||
void LogStop(void);
|
void LogStop(void);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define LOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r)
|
#define LOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define LOG(f, r...)
|
#define LOG(f, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GPUDEBUG
|
#ifdef GPUDEBUG
|
||||||
#define GPULOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r)
|
#define GPULOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define GPULOG(f, r...)
|
#define GPULOG(f, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DIVDEBUG
|
#ifdef DIVDEBUG
|
||||||
#define DIVLOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r)
|
#define DIVLOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define DIVLOG(f, r...)
|
#define DIVLOG(f, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SQRTDEBUG
|
#ifdef SQRTDEBUG
|
||||||
#define SQRTLOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r)
|
#define SQRTLOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define SQRTLOG(f, r...)
|
#define SQRTLOG(f, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CARDDEBUG
|
#ifdef CARDDEBUG
|
||||||
#define CARDLOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r)
|
#define CARDLOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define CARDLOG(f, r...)
|
#define CARDLOG(f, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DMADEBUG
|
#ifdef DMADEBUG
|
||||||
#define DMALOG(f, r...) DebugPrintf(MainLog, __FILE__, __LINE__, f, ## r)
|
#define DMALOG(f, ...) DebugPrintf(MainLog, __FILE__, __LINE__, f, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define DMALOG(f, r...)
|
#define DMALOG(f, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue