aboutsummaryrefslogtreecommitdiff
path: root/core/runtime/default_allocators_general.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-01-28 21:05:53 +0000
committergingerBill <bill@gingerbill.org>2024-01-28 21:05:53 +0000
commit09fa1c29cd014b4560b3c79c72db68af20ef8187 (patch)
tree45095630fb03a50df20e0249f98879cf27d94397 /core/runtime/default_allocators_general.odin
parentddcaa0de5395bfb1a2b004e6a6cb5e2ba1e2eed1 (diff)
Move `core:runtime` to `base:runtime`; keep alias around
Diffstat (limited to 'core/runtime/default_allocators_general.odin')
-rw-r--r--core/runtime/default_allocators_general.odin23
1 files changed, 0 insertions, 23 deletions
diff --git a/core/runtime/default_allocators_general.odin b/core/runtime/default_allocators_general.odin
deleted file mode 100644
index 994a672b0..000000000
--- a/core/runtime/default_allocators_general.odin
+++ /dev/null
@@ -1,23 +0,0 @@
-//+build !windows
-//+build !freestanding
-//+build !wasi
-//+build !js
-package runtime
-
-// TODO(bill): reimplement these procedures in the os_specific stuff
-import "core:os"
-
-when ODIN_DEFAULT_TO_NIL_ALLOCATOR {
- _ :: os
-
- // mem.nil_allocator reimplementation
- default_allocator_proc :: nil_allocator_proc
- default_allocator :: nil_allocator
-} else {
-
- default_allocator_proc :: os.heap_allocator_proc
-
- default_allocator :: proc() -> Allocator {
- return os.heap_allocator()
- }
-}