mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
compiles
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//+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
|
||||
}
|
||||
Reference in New Issue
Block a user