-default-to-panic-allocator

This commit is contained in:
gingerBill
2024-01-28 22:09:20 +00:00
parent 9be9f0bb2c
commit 395e0fb225
5 changed files with 37 additions and 15 deletions
@@ -13,6 +13,11 @@ when ODIN_DEFAULT_TO_NIL_ALLOCATOR {
// mem.nil_allocator reimplementation
default_allocator_proc :: nil_allocator_proc
default_allocator :: nil_allocator
} else when ODIN_DEFAULT_TO_PANIC_ALLOCATOR {
_ :: os
default_allocator_proc :: panic_allocator_proc
default_allocator :: panic_allocator
} else {
default_allocator_proc :: os.heap_allocator_proc