diff options
author | 3gg <3gg@shellblade.net> | 2024-04-13 12:21:52 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-04-13 12:21:52 -0700 |
commit | adc770b08bf8ec2bb89b156e52fcc63c719c4a83 (patch) | |
tree | d8976ab605c2d1c0413d41a6923fc3b695756fb3 /cassert | |
parent | 9369eb452e290d3d125ac4f9abf9cb8012e08ad7 (diff) |
Fix assert macro.
Diffstat (limited to 'cassert')
-rw-r--r-- | cassert/include/cassert.h | 4 |
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 | } |