Removed implicit assignments for container allocators in the Base and Core packages

This commit is contained in:
ed
2025-01-12 21:41:15 -05:00
parent 37ec315a91
commit 5a7b8b463b
11 changed files with 77 additions and 40 deletions
+8 -3
View File
@@ -203,9 +203,14 @@ set_key_value :: proc(model: ^$T, parser: ^Parser, name, key, value: string) ->
elem_backing: []byte
value_ptr: rawptr
if raw_map.allocator.procedure == nil {
raw_map.allocator = context.allocator
} else {
assert(raw_map.allocator.procedure != nil)
// Note(Ed) - Sectr Fork: Not a fan. (I want it to assert)
// if raw_map.allocator.procedure == nil {
// raw_map.allocator = context.allocator
// }
// else
{
value_ptr = runtime.__dynamic_map_get(raw_map,
specific_type_info.map_info,
hash,