浏览代码

include/starpu_util.h: macro STARPU_ASSERT_MSG: bracket properly

Nathalie Furmento 13 年之前
父节点
当前提交
1e88ed22a6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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