From 5b2acc934ee1cda4a514b617a56b43fc4ddf6a0f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 11 Oct 2025 14:21:35 -0400 Subject: Added Empty() struct --- src/stdlib/structs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/stdlib/structs.c') diff --git a/src/stdlib/structs.c b/src/stdlib/structs.c index 885b903c..89b5581b 100644 --- a/src/stdlib/structs.c +++ b/src/stdlib/structs.c @@ -6,6 +6,7 @@ #include "bools.h" #include "metamethods.h" #include "siphash.h" +#include "structs.h" #include "text.h" #include "util.h" @@ -214,3 +215,14 @@ void Struct$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo } } } + +public +const TypeInfo_t Empty$$info = {.size = 0, + .align = 0, + .tag = StructInfo, + .metamethods = Struct$metamethods, + .StructInfo.name = "Empty", + .StructInfo.num_fields = 0}; + +public +const Empty$$type EMPTY = {}; -- cgit v1.2.3