From 00142f8d8015550de139ea240212d0c5d24dcac6 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 17 Feb 2006 07:29:25 +0000 Subject: [PATCH] use __VA_ARGS__ in debug macros --- linux/xptypes.h | 6 +++--- wince/xptypes.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/linux/xptypes.h b/linux/xptypes.h index 0d8f3800d..1fcff046f 100644 --- a/linux/xptypes.h +++ b/linux/xptypes.h @@ -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 diff --git a/wince/xptypes.h b/wince/xptypes.h index fc722ef1f..7336f9ef2 100755 --- a/wince/xptypes.h +++ b/wince/xptypes.h @@ -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