context.allocator = a; Remove __ from runtime procs; improve division for complex numbers

This commit is contained in:
gingerBill committed 2018-09-15 10:14:24 +01:00
1 parent f1e1814ff9
commit 5bdb424c6b
8 files changed
+212 -177

No files matched your search

+1 -4
View File
@@ -110,10 +110,7 @@ make_dynamic_array_len_cap :: proc($T: typeid/[dynamic]$E, auto_cast len: int, a
}
make_map :: proc($T: typeid/map[$K]$E, auto_cast cap: int = 16, allocator := context.allocator, loc := #caller_location) -> T {
runtime.make_map_expr_error_loc(loc, cap);
c := context;
c.allocator = allocator;
context = c;
context.allocator = allocator;
m: T;
reserve_map(&m, cap);