Add default allocator to allocation related procedures e.g. alloc, free, delete, make

This commit is contained in:
gingerBill
2018-08-28 20:14:56 +01:00
parent ae2af8315e
commit 28523f17e2
3 changed files with 52 additions and 69 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ arena_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
(^Raw_Slice)(&arena.memory).len = 0;
case Resize:
return default_resize_align(old_memory, old_size, size, alignment);
return default_resize_align(old_memory, old_size, size, alignment, arena_allocator(arena));
}
return nil;