src/common.h

changeset 523
a12e36f2db5f
parent 515
a0ad72800b96
child 525
4f6e46a3bfc3
--- a/src/common.h	Tue Oct 22 13:40:16 2013 +0300
+++ b/src/common.h	Tue Oct 22 13:47:41 2013 +0300
@@ -143,9 +143,9 @@
 #endif // assert
 
 #ifdef DEBUG
-# define assert(N) ((N) ? (void) 0 : assertionFailure (__FILE__, __LINE__, FUNCNAME, #N))
+# define assert(N) { ((N) ? (void) 0 : assertionFailure (__FILE__, __LINE__, FUNCNAME, #N)) }
 #else
-# define assert(N)
+# define assert(N) {}
 #endif // DEBUG
 
 // Version string identifier

mercurial