From a09a78c0aee61fcf4ef56477776e85d1f67a0ee6 Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 21 Apr 2006 09:38:26 +0000 Subject: portage WIN32 ( pb sur macro debug ) --- src/ivydebug.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ivydebug.h b/src/ivydebug.h index da1dfee..749b4ce 100644 --- a/src/ivydebug.h +++ b/src/ivydebug.h @@ -2,7 +2,17 @@ #define IVY_DEBUG_H #ifdef WIN32 -#include +#ifdef DEBUG +#define TRACE(format,...) \ + fprintf (stderr, format , __VA_ARGS__ ) + +#define TRACE_IF( cond, format, ...) \ + if ( cond ) fprintf (stderr, format , __VA_ARGS__ ) + +#else +#define TRACE(format, args...) /**/ +#define TRACE_IF( cond, format, args...) /**/ +#endif #else #ifdef DEBUG #define TRACE(format, args...) \ -- cgit v1.1