aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/util.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-24 20:55:29 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-24 20:55:29 -0400
commitf5b2281084d31700690916c6dd250e2da927e566 (patch)
tree067f566a72fab976feccdb92f5bc26c16736e3f3 /src/stdlib/util.h
parentbb1af5c7b5e76ddd3e76ff75e62c0f0a65026ded (diff)
Clean up and fix issue with `if var := val` statements. Previous
implementation was kinda janky, but the new one is more robust and simple.
Diffstat (limited to 'src/stdlib/util.h')
-rw-r--r--src/stdlib/util.h11
1 files changed, 0 insertions, 11 deletions
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; \