summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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...) \