mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-18 18:47:02 +00:00
Allow for -use-static-map-calls which generates a get procedure per map; add runtime.map_get
This commit is contained in:
@@ -926,6 +926,10 @@ void init_universal(void) {
|
||||
|
||||
Type *hasher_args[2] = {t_rawptr, t_uintptr};
|
||||
t_hasher_proc = alloc_type_proc_from_types(hasher_args, 2, t_uintptr, false, ProcCC_Contextless);
|
||||
|
||||
Type *map_get_args[2] = {/*map*/t_rawptr, /*key*/t_rawptr};
|
||||
t_map_get_proc = alloc_type_proc_from_types(map_get_args, 2, t_rawptr, false, ProcCC_Contextless);
|
||||
|
||||
}
|
||||
|
||||
// Constants
|
||||
|
||||
Reference in New Issue
Block a user