summaryrefslogtreecommitdiff
path: root/src/gpu/effect_v2.cc
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/gpu/effect_v2.cc
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/gpu/effect_v2.cc')
-rw-r--r--src/gpu/effect_v2.cc4
1 files changed, 2 insertions, 2 deletions
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<std::string>& inputs,
const std::vector<std::string>& 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");
}