diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-07 12:34:41 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-07 12:34:41 +0100 |
| commit | 34b4b84b644c726869b863278f22f223d65e45af (patch) | |
| tree | 3fee3ba1e9b07ab9d6119f46e3818c7baa0a6009 /base | |
| parent | af3184adc96cef59fff986ea6400caa6dbdb56ae (diff) | |
Add `intrinsics.type_canonical_name`
Diffstat (limited to 'base')
| -rw-r--r-- | base/intrinsics/intrinsics.odin | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/intrinsics/intrinsics.odin b/base/intrinsics/intrinsics.odin index d45d24f48..c008321f0 100644 --- a/base/intrinsics/intrinsics.odin +++ b/base/intrinsics/intrinsics.odin @@ -233,6 +233,9 @@ type_integer_to_signed :: proc($T: typeid) -> type where type_is_integer(T), t type_has_shared_fields :: proc($U, $V: typeid) -> bool where type_is_struct(U), type_is_struct(V) --- +// Returns the canonicalized name of the type, of which is used to produce the pseudo-unique 'typeid' +type_canonical_name :: proc($T: typeid) -> string --- + constant_utf16_cstring :: proc($literal: string) -> [^]u16 --- constant_log2 :: proc($v: $T) -> T where type_is_integer(T) --- |