From 398d2cab6988e20c59e7037ff7ef551540339abb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 5 Oct 2025 17:52:33 -0400 Subject: Fix a bunch of issues with optional types --- src/stdlib/types.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/stdlib/types.h') diff --git a/src/stdlib/types.h b/src/stdlib/types.h index 85567815..bd2474fa 100644 --- a/src/stdlib/types.h +++ b/src/stdlib/types.h @@ -102,14 +102,3 @@ Text_t Type$as_text(const void *typeinfo, bool colorize, const TypeInfo_t *type) .tag = TypeInfoInfo, \ .TypeInfoInfo.type_str = typestr, \ .metamethods = {.serialize = cannot_serialize, .deserialize = cannot_deserialize, .as_text = Type$as_text}}) - -#define DEFINE_OPTIONAL_TYPE(t, unpadded_size, name) \ - typedef struct { \ - union { \ - t value; \ - struct { \ - char _padding[unpadded_size]; \ - Bool_t has_value; \ - }; \ - }; \ - } name -- cgit v1.2.3