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/gpu/effect_v2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/effect_v2.cc') diff --git a/src/gpu/effect_v2.cc b/src/gpu/effect_v2.cc index 79a14b4..7ecdfbd 100644 --- a/src/gpu/effect_v2.cc +++ b/src/gpu/effect_v2.cc @@ -6,6 +6,6 @@ EffectV2::EffectV2(const GpuContext& ctx, const std::vector& inputs, const std::vector& outputs) : ctx_(ctx), input_nodes_(inputs), output_nodes_(outputs) { - FATAL_CHECK(inputs.empty(), "Effect must have at least one input\n"); - FATAL_CHECK(outputs.empty(), "Effect must have at least one output\n"); + FATAL_CHECK(!inputs.empty(), "Effect must have at least one input\n"); + FATAL_CHECK(!outputs.empty(), "Effect must have at least one output\n"); } -- cgit v1.2.3