From 25fa8ace21f0f6874f5b3ad1248e0e5d21190c84 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 11 Oct 2025 15:28:47 -0400 Subject: Add optional empty type --- src/stdlib/datatypes.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/stdlib/datatypes.h') diff --git a/src/stdlib/datatypes.h b/src/stdlib/datatypes.h index 40d9be3e..60b5dd55 100644 --- a/src/stdlib/datatypes.h +++ b/src/stdlib/datatypes.h @@ -72,6 +72,11 @@ typedef struct table_s { typedef struct Empty$$struct { } Empty$$type; +typedef struct { + bool has_value; + Empty$$type value; +} $OptionalEmpty$$type; + typedef struct { void *fn, *userdata; } Closure_t; -- cgit v1.2.3