diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-08 13:35:18 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-08 13:35:18 -0400 |
| commit | 954ed42934ad76ac101b27b6ff06be383ad5dcd2 (patch) | |
| tree | f0757e0e9bb87845d961be52a49c8f894e23e14c /stdlib/types.c | |
| parent | 6b9055db7c03c09654c0605b96a37d50bf563fa9 (diff) | |
Simplify enum/struct codegen by using reusable general-purpose
metamethods for structs/enums instead of metamethod codegen for each struct/enum
defined.
Diffstat (limited to 'stdlib/types.c')
| -rw-r--r-- | stdlib/types.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
