aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/structs.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-11 14:21:35 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-11 14:21:35 -0400
commit5b2acc934ee1cda4a514b617a56b43fc4ddf6a0f (patch)
treefeb31009ea5e8433694b11dfe9c9c59969bcdfcc /src/stdlib/structs.c
parentc74fba540448f1d4b1aec4de8f3d9ffc395fdde0 (diff)
Added Empty() struct
Diffstat (limited to 'src/stdlib/structs.c')
-rw-r--r--src/stdlib/structs.c12
1 files changed, 12 insertions, 0 deletions
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 = {};