mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Move core:runtime to base:runtime; keep alias around
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//+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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user