Add Source_Code_Location parameter Allocator_Proc (#138)

This commit is contained in:
gingerBill
2017-11-08 22:05:51 +00:00
parent 4777bd607e
commit 0ffcccdae5
2 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ import "core:fmt.odin";
arena_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
size, alignment: int,
old_memory: rawptr, old_size: int, flags: u64) -> rawptr {
old_memory: rawptr, old_size: int, flags: u64, location := #caller_location) -> rawptr {
using Allocator_Mode;
arena := cast(^Arena)allocator_data;