mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
use __VA_ARGS__ in debug macros
This commit is contained in:
parent
199ecd10a2
commit
00142f8d80
2 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue