- added dvalof debug macro

Mon, 20 Jan 2014 23:43:14 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Mon, 20 Jan 2014 23:43:14 +0200
changeset 627
5c0147e9f3a3
parent 626
f3c01a033e9e
child 628
6b13e4c2e97b
child 669
aa23fe223182

- added dvalof debug macro

src/main.h file | annotate | diff | comparison | revisions
--- a/src/main.h	Mon Jan 20 14:39:49 2014 +0200
+++ b/src/main.h	Mon Jan 20 23:43:14 2014 +0200
@@ -83,6 +83,12 @@
 # endif // DEBUG
 #endif // IN_IDE_PARSER
 
+#ifndef IN_IDE_PARSER
+void dvalof (void a); // #define dvalof(A) dlog ("value of '%1' = %2\n", #A, A)
+#else
+# define dvalof(A) dlog ("value of '%1' = %2\n", #A, A)
+#endif
+
 // 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