ffi example: use c as library specifier

This commit is contained in:
Alex Zenla 2023-09-06 19:08:32 -07:00
parent 236f812caf
commit f31e12df89
Signed by: alex
GPG Key ID: C0780728420EBFE5

View File

@ -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 {