mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-20 04:35:00 -07:00
28 lines
546 B
Odin
28 lines
546 B
Odin
//+private
|
|
package os2
|
|
|
|
import "core:mem"
|
|
|
|
heap_alloc :: proc(size: int) -> rawptr {
|
|
// TODO
|
|
return nil
|
|
}
|
|
|
|
heap_resize :: proc(ptr: rawptr, new_size: int) -> rawptr {
|
|
// TODO
|
|
return nil
|
|
}
|
|
heap_free :: proc(ptr: rawptr) {
|
|
if ptr == nil {
|
|
return
|
|
}
|
|
// TODO
|
|
}
|
|
|
|
_heap_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,
|
|
size, alignment: int,
|
|
old_memory: rawptr, old_size: int, loc := #caller_location) -> ([]byte, mem.Allocator_Error) {
|
|
// TODO
|
|
return nil, nil
|
|
}
|