From bb57aeb7442ccbb2890bb4e129cfbf01b6646dd4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 29 Nov 2024 20:03:20 -0500 Subject: Fix Type:as_text() --- stdlib/types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stdlib/types.h') diff --git a/stdlib/types.h b/stdlib/types.h index faaa531c..f644390a 100644 --- a/stdlib/types.h +++ b/stdlib/types.h @@ -70,14 +70,14 @@ struct TypeInfo_s { }; }; -#define Type$info(typestr) &((TypeInfo_t){.size=sizeof(TypeInfo_t), .align=__alignof__(TypeInfo_t), \ - .tag=TypeInfoInfo, .TypeInfoInfo.type_str=typestr, \ - .metamethods={.serialize=cannot_serialize, .deserialize=cannot_deserialize}}) - extern const TypeInfo_t Void$info; extern const TypeInfo_t Abort$info; #define Void_t void Text_t Type$as_text(const void *typeinfo, bool colorize, const TypeInfo_t *type); +#define Type$info(typestr) &((TypeInfo_t){.size=sizeof(TypeInfo_t), .align=__alignof__(TypeInfo_t), \ + .tag=TypeInfoInfo, .TypeInfoInfo.type_str=typestr, \ + .metamethods={.serialize=cannot_serialize, .deserialize=cannot_deserialize, .as_text=Type$as_text}}) + // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 -- cgit v1.2.3