From 954ed42934ad76ac101b27b6ff06be383ad5dcd2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 8 Oct 2024 13:35:18 -0400 Subject: Simplify enum/struct codegen by using reusable general-purpose metamethods for structs/enums instead of metamethod codegen for each struct/enum defined. --- stdlib/types.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib/types.c') diff --git a/stdlib/types.c b/stdlib/types.c index ebc91563..073bb5b8 100644 --- a/stdlib/types.c +++ b/stdlib/types.c @@ -25,7 +25,7 @@ public Text_t Type$as_text(const void *typeinfo, bool colorize, const TypeInfo_t return Text$from_str(type->TypeInfoInfo.type_str); } -public const TypeInfo_t Void$info = {.size=0, .align=0, .tag=EmptyStructInfo}; -public const TypeInfo_t Abort$info = {.size=0, .align=0, .tag=EmptyStructInfo}; +public const TypeInfo_t Void$info = {.size=0, .align=0, .tag=StructInfo}; +public const TypeInfo_t Abort$info = {.size=0, .align=0, .tag=StructInfo}; // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 -- cgit v1.2.3