summaryrefslogtreecommitdiff
path: root/protocols/SkypeClassic/src/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeClassic/src/debug.h')
-rw-r--r--protocols/SkypeClassic/src/debug.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/protocols/SkypeClassic/src/debug.h b/protocols/SkypeClassic/src/debug.h
new file mode 100644
index 0000000000..9582246251
--- /dev/null
+++ b/protocols/SkypeClassic/src/debug.h
@@ -0,0 +1,23 @@
+//#define DEBUG_RELEASE 1
+
+#ifdef DEBUG_RELEASE
+ #define _DEBUG 1
+#endif
+
+#ifdef _DEBUG
+ void init_debug(void);
+ void end_debug (void);
+ void do_log(const char *pszFormat, ...);
+ #define DEBUG_OUT(a) OUTPUT(a)
+ #define TRACE(a) OutputDebugString(a)
+ #define TRACEA(a) OutputDebugStringA(a)
+ #define TRACEW(a) OutputDebugStringW(a)
+ #define LOG(a) do_log a
+#else
+ #define DEBUG_OUT(a)
+ #define LOG(a)
+ #define TRACE(a)
+ #define TRACEA(a)
+ #define TRACEW(a)
+#endif
+