summaryrefslogtreecommitdiff
path: root/src/ivydebug.h
blob: da1dfee6fee128682a029843425fbb0642d91e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef IVY_DEBUG_H
#define IVY_DEBUG_H

#ifdef WIN32
#include <crtdbg.h>
#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