aboutsummaryrefslogtreecommitdiff
path: root/core/_preload.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-05-13 10:14:32 +0100
committergingerBill <bill@gingerbill.org>2018-05-13 10:14:32 +0100
commit6164672421caf9fafcabc2bbfbeb60c09f932155 (patch)
tree1d4f012d9c201827248be8f7ebb03e22d188081b /core/_preload.odin
parent61906613b0bccf7b6d542acfbc545213c810c910 (diff)
Change `FreeAll` to `Free_All`
Diffstat (limited to 'core/_preload.odin')
-rw-r--r--core/_preload.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/_preload.odin b/core/_preload.odin
index b67736791..d231a6c52 100644
--- a/core/_preload.odin
+++ b/core/_preload.odin
@@ -151,7 +151,7 @@ Source_Code_Location :: struct {
Allocator_Mode :: enum byte {
Alloc,
Free,
- FreeAll,
+ Free_All,
Resize,
}
@@ -317,7 +317,7 @@ free_ptr :: inline proc(ptr: rawptr, loc := #caller_location) do free_ptr_with_a
free_all :: inline proc(loc := #caller_location) {
a := context.allocator;
- a.procedure(a.data, Allocator_Mode.FreeAll, 0, 0, nil, 0, 0, loc);
+ a.procedure(a.data, Allocator_Mode.Free_All, 0, 0, nil, 0, 0, loc);
}
@@ -580,7 +580,7 @@ default_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
os.heap_free(old_memory);
return nil;
- case FreeAll:
+ case Free_All:
// NOTE(bill): Does nothing
case Resize: