ansicon/debugstr.h
Luis Lavena a3a594001b Moved DEBUGSTR to a separated file
This make more easy enable and disable debugging across
ansicon
2010-12-10 13:05:13 -03:00

19 lines
429 B
C

// ========== Auxiliary debug function
#define MYDEBUG 0 // no debugging
//#define MYDEBUG 1 // use OutputDebugString
//#define MYDEBUG 2 // use %temp%\ansicon.log
#if (MYDEBUG > 0)
# if (MYDEBUG > 1)
char tempfile[MAX_PATH];
# endif
void DEBUGSTR( LPTSTR szFormat, ... );
#else
# if defined(_MSC_VER) && _MSC_VER <= 1400
void DEBUGSTR() { }
# else
# define DEBUGSTR(...)
# endif
#endif