aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-04-13 12:21:52 -0700
committer3gg <3gg@shellblade.net>2024-04-13 12:21:52 -0700
commitadc770b08bf8ec2bb89b156e52fcc63c719c4a83 (patch)
treed8976ab605c2d1c0413d41a6923fc3b695756fb3
parent9369eb452e290d3d125ac4f9abf9cb8012e08ad7 (diff)
Fix assert macro.
-rw-r--r--cassert/include/cassert.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cassert/include/cassert.h b/cassert/include/cassert.h
index e1c38d6..ef6e033 100644
--- a/cassert/include/cassert.h
+++ b/cassert/include/cassert.h
@@ -21,9 +21,9 @@
21 LOGE(format, __VA_ARGS__); \ 21 LOGE(format, __VA_ARGS__); \
22 TRAP(); 22 TRAP();
23 23
24/// Conditional hard assert. 24//// Conditional hard assert.
25#define ASSERT(condition) \ 25#define ASSERT(condition) \
26 if (!condition) { \ 26 if (!(condition)) { \
27 LOGE("Assertion failed: " #condition) \ 27 LOGE("Assertion failed: " #condition) \
28 TRAP(); \ 28 TRAP(); \
29 } 29 }