diff options
| author | gingerBill <bill@gingerbill.org> | 2024-08-24 14:36:18 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-08-24 14:36:18 +0100 |
| commit | d0eaf7642dcf38f6f98c50e4daa53d31e2fadd71 (patch) | |
| tree | a6339a1045d65eb90ecc3fd8ffba0dd354c49b44 /base | |
| parent | eb799393d58c6246a1726113694ce3d252752fc5 (diff) | |
Add `intrinsics.type_has_shared_fields`
Diffstat (limited to 'base')
| -rw-r--r-- | base/intrinsics/intrinsics.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/intrinsics/intrinsics.odin b/base/intrinsics/intrinsics.odin index b7e8c1189..3cf99bbd2 100644 --- a/base/intrinsics/intrinsics.odin +++ b/base/intrinsics/intrinsics.odin @@ -219,6 +219,8 @@ type_map_cell_info :: proc($T: typeid) -> ^runtime.Map_Cell_Info --- type_convert_variants_to_pointers :: proc($T: typeid) -> typeid where type_is_union(T) --- type_merge :: proc($U, $V: typeid) -> typeid where type_is_union(U), type_is_union(V) --- +type_has_shared_fields :: proc($U, $V: typeid) -> bool typeid where type_is_struct(U), type_is_struct(V) --- + constant_utf16_cstring :: proc($literal: string) -> [^]u16 --- constant_log2 :: proc($v: $T) -> T where type_is_integer(T) --- |