Fixed incorrect const values
This commit is contained in:
parent
4dbfa80939
commit
d5bcf340e9
22 changed files with 93 additions and 92 deletions
7
lib/mem/free_windows.q
Normal file
7
lib/mem/free_windows.q
Normal file
|
@ -0,0 +1,7 @@
|
|||
extern kernel32 {
|
||||
VirtualFree(address *any, size uint, type uint32) -> bool
|
||||
}
|
||||
|
||||
free(address []any) -> int {
|
||||
return kernel32.VirtualFree(address-8, len(address)+8, mem.decommit)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue