mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
Add bsd to mem/virtual
This commit is contained in:
24
core/mem/virtual/virtual_bsd.odin
Normal file
24
core/mem/virtual/virtual_bsd.odin
Normal file
@@ -0,0 +1,24 @@
|
||||
//+build freebsd, openbsd
|
||||
//+private
|
||||
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() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user