1 // Type information and methods for TypeInfos (i.e. runtime representations of types)
12 Text_t Type$as_text(const void *typeinfo, bool colorize, const TypeInfo_t *type) {
13 if (!typeinfo) return Text("Type");
15 if (colorize) return Text$concat(Text("\x1b[36;1m"), Text$from_str(type->TypeInfoInfo.type_str), Text("\x1b[m"));
16 else return Text$from_str(type->TypeInfoInfo.type_str);
20 const TypeInfo_t Void$info = {.size = 0, .align = 0, .tag = StructInfo};
22 const TypeInfo_t Abort$info = {.size = 0, .align = 0, .tag = StructInfo};