Removed implicit assignments for container allocators in the Base and Core packages
This commit is contained in:
1 parent
37ec315a91
commit
5a7b8b463b
11 files changed
+77
-40
No files matched your search
@@ -105,9 +105,10 @@ Returns:
|
||||
- err: An allocator error if one occured, `nil` otherwise
|
||||
*/
|
||||
_intern_get_entry :: proc(m: ^Intern, text: string) -> (new_entry: ^Intern_Entry, err: runtime.Allocator_Error) #no_bounds_check {
|
||||
if m.allocator.procedure == nil {
|
||||
m.allocator = context.allocator
|
||||
}
|
||||
// Note(Ed) - Sectr Fork: Not a fan. (I want it to assert)
|
||||
// if m.allocator.procedure == nil {
|
||||
// m.allocator = context.allocator
|
||||
// }
|
||||
|
||||
key_ptr, val_ptr, inserted := map_entry(&m.entries, text) or_return
|
||||
if !inserted {
|
||||
|
||||
Reference in new issue
Block a user