summaryrefslogtreecommitdiff
path: root/src/util/check_return.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 12:52:07 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 12:52:07 +0100
commit83322562ce0c33a8026611471dc7b1b3241bce64 (patch)
treec7702f33b02e7eb639eb26c8708030e46e4e52fe /src/util/check_return.h
parentf03f3428991499e0701cce5eacc2bb943fde9d8e (diff)
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
Diffstat (limited to 'src/util/check_return.h')
-rw-r--r--src/util/check_return.h2
1 files changed, 1 insertions, 1 deletions
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: