summaryrefslogtreecommitdiff
path: root/src/ivydebug.h
diff options
context:
space:
mode:
authorfcolin2006-04-21 09:38:26 +0000
committerfcolin2006-04-21 09:38:26 +0000
commita09a78c0aee61fcf4ef56477776e85d1f67a0ee6 (patch)
tree5ea284fe4a4ce8598a2217552c1f4385cadc6fd5 /src/ivydebug.h
parentcb27ea4ee0ba267361c7a33e704f5a1aaadb174d (diff)
downloadivy-c-a09a78c0aee61fcf4ef56477776e85d1f67a0ee6.zip
ivy-c-a09a78c0aee61fcf4ef56477776e85d1f67a0ee6.tar.gz
ivy-c-a09a78c0aee61fcf4ef56477776e85d1f67a0ee6.tar.bz2
ivy-c-a09a78c0aee61fcf4ef56477776e85d1f67a0ee6.tar.xz
portage WIN32 ( pb sur macro debug )
Diffstat (limited to 'src/ivydebug.h')
-rw-r--r--src/ivydebug.h12
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...) \