mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 05:20:28 +00:00
Add hasher proc generation
This commit is contained in:
@@ -432,6 +432,12 @@ gb_internal cgValue cg_build_builtin(cgProcedure *p, BuiltinProcId id, Ast *expr
|
||||
return cg_emit_runtime_call(p, "__type_info_of", args);
|
||||
}
|
||||
|
||||
|
||||
case BuiltinProc_type_equal_proc:
|
||||
return cg_equal_proc_value_for_type(p, ce->args[0]->tav.type);
|
||||
|
||||
case BuiltinProc_type_hasher_proc:
|
||||
return cg_hasher_proc_value_for_type(p, ce->args[0]->tav.type);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user