From 469b1e067961e021e7860f70919b574c142d1f40 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 16 Mar 2025 13:35:58 -0400 Subject: Fixes for opaque external structs --- stdlib/structs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib/structs.c') diff --git a/stdlib/structs.c b/stdlib/structs.c index b3b26bde..0b1385ee 100644 --- a/stdlib/structs.c +++ b/stdlib/structs.c @@ -139,7 +139,7 @@ PUREFUNC public Text_t Struct$as_text(const void *obj, bool colorize, const Type { if (!obj) return Text$from_str(type->StructInfo.name); - if (type->StructInfo.is_secret) + if (type->StructInfo.is_secret || type->StructInfo.is_opaque) return Text$format(colorize ? "\x1b[0;1m%s\x1b[m(...)" : "%s(...)", type->StructInfo.name); Text_t text = Text$format(colorize ? "\x1b[0;1m%s\x1b[m(" : "%s(", type->StructInfo.name); -- cgit v1.2.3