src/main.h

changeset 560
39085791128f
parent 557
04e140bdeb0b
child 566
549c63863544
--- a/src/main.h	Wed Dec 18 17:03:35 2013 +0200
+++ b/src/main.h	Wed Dec 18 17:44:31 2013 +0200
@@ -100,6 +100,16 @@
 #define FUNCNAME __func__
 #endif // __GNUC__
 
+#ifdef IN_IDE_PARSER
+void dlog(void, ...) {}
+#else
+# ifdef DEBUG
+#  define dlog(...) log( str( __PRETTY_FUNCTION__ ) + ": " __VA_ARGS__)
+# else
+#  define dlog(...)
+# endif // DEBUG
+#endif // IN_IDE_PARSER
+
 // Replace assert with a version that shows a GUI dialog if possible.
 // On Windows I just can't get the actual error messages otherwise.
 void assertionFailure (const char* file, int line, const char* funcname, const char* expr);

mercurial