Allocator_Error.Mode_Not_Implemented; Minor improvement to map runtime procedures

This commit is contained in:
gingerBill
2021-08-08 14:29:45 +01:00
parent a5605e94b1
commit 4d00c2b800
6 changed files with 41 additions and 120 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ heap_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,
aligned_free(old_memory);
case .Free_All:
// NOTE(tetra): Do nothing.
return nil, .Mode_Not_Implemented;
case .Resize:
if old_memory == nil {
@@ -204,7 +204,7 @@ heap_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,
return nil, nil;
case .Query_Info:
return nil, nil;
return nil, .Mode_Not_Implemented;
}
return nil, nil;
+1 -1
View File
@@ -84,7 +84,7 @@ _heap_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,
aligned_free(old_memory);
case .Free_All:
// NOTE(tetra): Do nothing.
return nil, .Mode_Not_Implemented;
case .Resize:
if old_memory == nil {