diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-29 20:03:20 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-29 20:03:20 -0500 |
| commit | bb57aeb7442ccbb2890bb4e129cfbf01b6646dd4 (patch) | |
| tree | 0095c8bfc617746ff64fd8c37e3cda9516794422 | |
| parent | a68e9a19429b0b5e08800e8ec90be2f7402d9ff3 (diff) | |
Fix Type:as_text()
| -rw-r--r-- | stdlib/types.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
