From f5b2281084d31700690916c6dd250e2da927e566 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Aug 2025 20:55:29 -0400 Subject: Clean up and fix issue with `if var := val` statements. Previous implementation was kinda janky, but the new one is more robust and simple. --- src/stdlib/util.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/stdlib/util.h') diff --git a/src/stdlib/util.h b/src/stdlib/util.h index a789c5f0..1530bd9e 100644 --- a/src/stdlib/util.h +++ b/src/stdlib/util.h @@ -21,17 +21,6 @@ &var; \ }) -#define IF_DECLARE(decl, expr, block) \ - if (({ \ - decl; \ - expr ? ({ \ - block; \ - 1; \ - }) \ - : 0; \ - })) { \ - } - #define WHEN(type, subj, var, body) \ { \ type var = subj; \ -- cgit v1.2.3