-default-to-panic-allocator
This commit is contained in:
1 parent
9be9f0bb2c
commit
395e0fb225
5 files changed
+37
-15
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user