diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 22:15:45 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 22:15:45 -0500 |
| commit | 4a5c651d43f106b8e19b485646c64cb576a75cfb (patch) | |
| tree | 6fe289145c475cfc027bd9d8c98c80e8cbccf8c7 /builtins/types.c | |
| parent | 95641182021b5ba76697f57706c12ad70340193f (diff) | |
Overload type names with constructor and namespace struct
Diffstat (limited to 'builtins/types.c')
| -rw-r--r-- | builtins/types.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/builtins/types.c b/builtins/types.c index fc0963d2..c7e29cf8 100644 --- a/builtins/types.c +++ b/builtins/types.c @@ -23,9 +23,7 @@ public CORD Type__as_str(const void *typeinfo, bool colorize, const TypeInfo *ty return c; } -public struct { - TypeInfo type; -} TypeInfo_type = { +public TypeInfo_namespace_t TypeInfo_namespace = { .type={ .size=sizeof(TypeInfo), .align=__alignof__(TypeInfo), @@ -36,10 +34,10 @@ public struct { public struct { TypeInfo type; -} Void_type = {.type={.size=0, .align=0}}; +} Void = {.type={.size=0, .align=0}}; public struct { TypeInfo type; -} Abort_type = {.type={.size=0, .align=0}}; +} Abort = {.type={.size=0, .align=0}}; public CORD Func__as_str(const void *fn, bool colorize, const TypeInfo *type) { |
