Improved Windows support
This commit is contained in:
parent
a7835a4494
commit
32ae625af4
8 changed files with 50 additions and 8 deletions
|
@ -8,6 +8,10 @@ mmap(address Int, length Int, protection Int, flags Int) -> Pointer {
|
|||
return kernel32.VirtualAlloc(address, length, flags, protection)
|
||||
}
|
||||
|
||||
munmap(address Pointer, length Int) -> Int {
|
||||
return kernel32.VirtualFree(address, length, 0x4000)
|
||||
}
|
||||
|
||||
exit(code Int) {
|
||||
kernel32.ExitProcess(code)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue