Implemented const keyword
This commit is contained in:
parent
be028a52d1
commit
0a1a8f741d
21 changed files with 164 additions and 26 deletions
|
@ -3,10 +3,14 @@ extern kernel32 {
|
|||
VirtualFree(address *Any, length Int, type Int) -> Bool
|
||||
}
|
||||
|
||||
const mem {
|
||||
decommit 0x4000
|
||||
}
|
||||
|
||||
mmap(address Int, length Int, protection Int, flags Int) -> *Any {
|
||||
return kernel32.VirtualAlloc(address, length, flags, protection)
|
||||
}
|
||||
|
||||
munmap(address *Any, length Int) -> Int {
|
||||
return kernel32.VirtualFree(address, length, 0x4000)
|
||||
return kernel32.VirtualFree(address, length, mem.decommit)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue