mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 05:10: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)
|
func malloc(size)
|
||||||
native ffi "libc.dylib:malloc:void*"
|
native ffi "c:malloc:void*"
|
||||||
|
|
||||||
func free(pointer)
|
func free(pointer)
|
||||||
native ffi "libc.dylib:free:void"
|
native ffi "c:free:void"
|
||||||
|
|
||||||
export func main() {
|
export func main() {
|
||||||
while true {
|
while true {
|
||||||
|
Loading…
Reference in New Issue
Block a user