aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/default_allocators_general.odin
diff options
context:
space:
mode:
Diffstat (limited to 'base/runtime/default_allocators_general.odin')
-rw-r--r--base/runtime/default_allocators_general.odin5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/runtime/default_allocators_general.odin b/base/runtime/default_allocators_general.odin
index 994a672b0..e3b06af7b 100644
--- a/base/runtime/default_allocators_general.odin
+++ b/base/runtime/default_allocators_general.odin
@@ -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