From 2ed39b250788a32ee77e5af1a923edd64211d128 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 20 Apr 2006 15:55:15 +0000 Subject: Macro de debug afin d'eviter de truffer le code de #ifdef DEBUG #endif --- src/ivydebug.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ivydebug.h (limited to 'src') diff --git a/src/ivydebug.h b/src/ivydebug.h new file mode 100644 index 0000000..da1dfee --- /dev/null +++ b/src/ivydebug.h @@ -0,0 +1,20 @@ +#ifndef IVY_DEBUG_H +#define IVY_DEBUG_H + +#ifdef WIN32 +#include +#else +#ifdef DEBUG +#define TRACE(format, args...) \ + fprintf (stderr, format , ## args) + +#define TRACE_IF( cond, format, args...) \ + if ( cond ) fprintf (stderr, format , ## args) + +#else +#define TRACE(format, args...) /**/ +#define TRACE_IF( cond, format, args...) /**/ +#endif +#endif + +#endif -- cgit v1.1