diff options
| author | gingerBill <bill@gingerbill.org> | 2024-01-28 22:09:20 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-01-28 22:09:20 +0000 |
| commit | 395e0fb225816ff9699e82f6d9d5887ef3b1358a (patch) | |
| tree | 504128c32179f3e4edd1adc3c91adfbc6d2256be /base | |
| parent | 9be9f0bb2c6761a424d9e151594c61af29163be7 (diff) | |
`-default-to-panic-allocator`
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/default_allocators_general.odin | 5 |
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 |