aboutsummaryrefslogtreecommitdiff
path: root/builtins/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-17 22:15:45 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-17 22:15:45 -0500
commit4a5c651d43f106b8e19b485646c64cb576a75cfb (patch)
tree6fe289145c475cfc027bd9d8c98c80e8cbccf8c7 /builtins/types.h
parent95641182021b5ba76697f57706c12ad70340193f (diff)
Overload type names with constructor and namespace struct
Diffstat (limited to 'builtins/types.h')
-rw-r--r--builtins/types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtins/types.h b/builtins/types.h
index 0430fbe5..7f656b18 100644
--- a/builtins/types.h
+++ b/builtins/types.h
@@ -44,6 +44,12 @@ typedef struct TypeInfo {
};
} TypeInfo;
+typedef struct {
+ TypeInfo type;
+} TypeInfo_namespace_t;
+
+extern TypeInfo_namespace_t TypeInfo_namespace;
+
CORD Type__as_str(const void *typeinfo, bool colorize, const TypeInfo *type);
CORD Func__as_str(const void *fn, bool colorize, const TypeInfo *type);