From adc770b08bf8ec2bb89b156e52fcc63c719c4a83 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 13 Apr 2024 12:21:52 -0700 Subject: Fix assert macro. --- cassert/include/cassert.h | 4 ++-- 1 file 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 @@ LOGE(format, __VA_ARGS__); \ TRAP(); -/// Conditional hard assert. +//// Conditional hard assert. #define ASSERT(condition) \ - if (!condition) { \ + if (!(condition)) { \ LOGE("Assertion failed: " #condition) \ TRAP(); \ } -- cgit v1.2.3