summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2016-01-27 15:22:53 -0800
committerDan Gohman <sunfish@mozilla.com>2016-01-27 15:22:53 -0800
commitace3199b27b4f15f30fd6a2f3dbe5534a0ccf6b5 (patch)
treeb13eb1ccac726e66026790ebac9408b2ba1848a8
parent047e78d18d997cb206ee121a23bdf466dba17034 (diff)
downloadbinaryen-ace3199b27b4f15f30fd6a2f3dbe5534a0ccf6b5.tar.gz
binaryen-ace3199b27b4f15f30fd6a2f3dbe5534a0ccf6b5.tar.bz2
binaryen-ace3199b27b4f15f30fd6a2f3dbe5534a0ccf6b5.zip
Parenthesize macro arguments.
-rw-r--r--src/wasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 5b56cd62d..987a8da6b 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -270,8 +270,8 @@ enum HostOp {
};
#define assert_node(condition, node) \
- if (!condition) { \
- std::cerr << "node: " << node << std::endl; \
+ if (!(condition)) { \
+ std::cerr << "node: " << (node) << std::endl; \
assert(0 && #condition); \
}