diff options
author | fcolin | 2006-04-21 09:38:26 +0000 |
---|---|---|
committer | fcolin | 2006-04-21 09:38:26 +0000 |
commit | a09a78c0aee61fcf4ef56477776e85d1f67a0ee6 (patch) | |
tree | 5ea284fe4a4ce8598a2217552c1f4385cadc6fd5 | |
parent | cb27ea4ee0ba267361c7a33e704f5a1aaadb174d (diff) | |
download | ivy-c-a09a78c0aee61fcf4ef56477776e85d1f67a0ee6.zip ivy-c-a09a78c0aee61fcf4ef56477776e85d1f67a0ee6.tar.gz ivy-c-a09a78c0aee61fcf4ef56477776e85d1f67a0ee6.tar.bz2 ivy-c-a09a78c0aee61fcf4ef56477776e85d1f67a0ee6.tar.xz |
portage WIN32 ( pb sur macro debug )
-rw-r--r-- | src/ivydebug.h | 12 |
1 files changed, 11 insertions, 1 deletions
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 <crtdbg.h> +#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...) \ |