mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-02 12:50:55 +00:00
ffi example: use c as library specifier
This commit is contained in:
parent
236f812caf
commit
f31e12df89
@ -1,8 +1,8 @@
|
||||
func malloc(size)
|
||||
native ffi "libc.dylib:malloc:void*"
|
||||
native ffi "c:malloc:void*"
|
||||
|
||||
func free(pointer)
|
||||
native ffi "libc.dylib:free:void"
|
||||
native ffi "c:free:void"
|
||||
|
||||
export func main() {
|
||||
while true {
|
||||
|
Loading…
Reference in New Issue
Block a user