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/audio/tracker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/audio/tracker.cc') diff --git a/src/audio/tracker.cc b/src/audio/tracker.cc index 38c814d..e7da26a 100644 --- a/src/audio/tracker.cc +++ b/src/audio/tracker.cc @@ -149,7 +149,7 @@ void tracker_init() { for (uint32_t pid = 0; pid < g_tracker_patterns_count; ++pid) { const TrackerPattern& pattern = g_tracker_patterns[pid]; for (uint32_t i = 1; i < pattern.num_events; ++i) { - FATAL_CHECK(pattern.events[i].unit_time < pattern.events[i - 1].unit_time, + FATAL_CHECK(pattern.events[i].unit_time >= pattern.events[i - 1].unit_time, "Pattern %d has unsorted events: event[%d].time=%.3f < " "event[%d].time=%.3f\n", pid, i, pattern.events[i].unit_time, i - 1, -- cgit v1.2.3