From 83322562ce0c33a8026611471dc7b1b3241bce64 Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 16 Feb 2026 12:52:07 +0100 Subject: refactor: invert FATAL_CHECK logic to standard assertion style - Inverted FATAL_CHECK macro to crash if condition is FALSE (standard assertion) - Updated all call sites in audio, GPU, and CNN subsystems - Updated documentation and examples - Recorded completion in doc/COMPLETED.md --- src/util/check_return.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/check_return.h') diff --git a/src/util/check_return.h b/src/util/check_return.h index 89ed4bc..bfdadf5 100644 --- a/src/util/check_return.h +++ b/src/util/check_return.h @@ -138,7 +138,7 @@ // - Programming errors (assertion failures, invariant violations) // - Corrupted state that cannot be recovered // - Internal consistency checks -// - Example: FATAL_CHECK(idx >= size, "Index out of bounds: %d >= %d", idx, +// - Example: FATAL_CHECK(idx < size, "Index out of bounds: %d >= %d", idx, // size) // // Use CHECK_RETURN for: -- cgit v1.2.3