use __VA_ARGS__ in debug macros

This commit is contained in:
ehouse 2006-02-17 07:29:25 +00:00
parent 199ecd10a2
commit 00142f8d80
2 changed files with 7 additions and 7 deletions

View file

@ -62,10 +62,10 @@ typedef unsigned long XP_Time;
#ifdef DEBUG
extern void linux_debugf(char*, ...);
#define XP_DEBUGF linux_debugf
#define XP_DEBUGF(...) linux_debugf(__VA_ARGS__)
#else
extern void p_ignore(char*, ...);
#define XP_DEBUGF if(0)p_ignore
#define XP_DEBUGF(ch,...)
#endif
#define XP_WARNF XP_DEBUGF

View file

@ -94,11 +94,11 @@ typedef XP_U32 XP_Time;
#define XP_WARNF XP_DEBUGF
#ifdef DEBUG
#define XP_DEBUGF wince_debugf
#define XP_LOGF wince_debugf
#define XP_DEBUGF(...) wince_debugf(__VA_ARGS__)
#define XP_LOGF(...) wince_debugf(__VA_ARGS__)
#else
#define XP_DEBUGF if(0)p_ignore
#define XP_LOGF if(0)p_ignore
#define XP_DEBUGF(...)
#define XP_LOGF(...)
#endif
#ifdef CPLUS