mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-17 22:09:26 -04:00
38 lines
815 B
Odin
38 lines
815 B
Odin
#+private
|
|
#+build !darwin
|
|
#+build !freebsd
|
|
#+build !openbsd
|
|
#+build !netbsd
|
|
#+build !linux
|
|
#+build !windows
|
|
package mem_virtual
|
|
|
|
_reserve :: proc "contextless" (size: uint) -> (data: []byte, err: Allocator_Error) {
|
|
return nil, nil
|
|
}
|
|
|
|
_commit :: proc "contextless" (data: rawptr, size: uint) -> Allocator_Error {
|
|
return nil
|
|
}
|
|
|
|
_decommit :: proc "contextless" (data: rawptr, size: uint) {
|
|
}
|
|
|
|
_release :: proc "contextless" (data: rawptr, size: uint) {
|
|
}
|
|
|
|
_protect :: proc "contextless" (data: rawptr, size: uint, flags: Protect_Flags) -> bool {
|
|
return false
|
|
}
|
|
|
|
_platform_memory_init :: proc "contextless" () {
|
|
|
|
}
|
|
|
|
_map_file :: proc "contextless" (f: any, size: i64, flags: Map_File_Flags) -> (data: []byte, error: Map_File_Error) {
|
|
return nil, .Map_Failure
|
|
}
|
|
|
|
_unmap_file :: proc "contextless" (data: []byte) {
|
|
|
|
} |