mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-02 21:00:56 +00:00
14 lines
226 B
Plaintext
14 lines
226 B
Plaintext
func malloc(size)
|
|
native ffi "libc.dylib:malloc:void*"
|
|
|
|
func free(pointer)
|
|
native ffi "libc.dylib:free:void"
|
|
|
|
export func main() {
|
|
while true {
|
|
let pointer = malloc(8192)
|
|
println(pointer)
|
|
free(pointer)
|
|
}
|
|
}
|