mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-18 00:48:23 +00:00
Add intrinsics.type_hasher_proc; Make map work with generic hasher procedure
This commit is contained in:
@@ -690,7 +690,8 @@ gb_global Type *t_map_header = nullptr;
|
||||
gb_global Type *t_vector_x86_mmx = nullptr;
|
||||
|
||||
|
||||
gb_global Type *t_equal_proc = nullptr;
|
||||
gb_global Type *t_equal_proc = nullptr;
|
||||
gb_global Type *t_hasher_proc = nullptr;
|
||||
|
||||
|
||||
i64 type_size_of (Type *t);
|
||||
@@ -1949,6 +1950,9 @@ bool is_type_simple_compare(Type *t) {
|
||||
if (t->Basic.flags & BasicFlag_SimpleCompare) {
|
||||
return true;
|
||||
}
|
||||
if (t->Basic.kind == Basic_typeid) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
case Type_Pointer:
|
||||
|
||||
Reference in New Issue
Block a user