Browse Source

include/starpu_util.h: macro STARPU_ASSERT_MSG: bracket properly

Nathalie Furmento 13 years ago
parent
commit
1e88ed22a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/starpu_util.h

+ 1 - 1
include/starpu_util.h

@@ -43,7 +43,7 @@ extern "C"
 #    define STARPU_ASSERT_MSG(x, msg)	do { if (!(x)) { fprintf(stderr, "%s\n", msg); *(int*)NULL = 0; }} while(0)
 #  else
 #    define STARPU_ASSERT(x)		assert(x)
-#    define STARPU_ASSERT_MSG(x, msg)	if (!(x)) { fprintf(stderr, "%s\n", msg); } ; assert(x)
+#    define STARPU_ASSERT_MSG(x, msg)	{ if (!(x)) { fprintf(stderr, "%s\n", msg); } ; assert(x); }
 
 #  endif
 #endif