Skip to content

Commit

Permalink
ffi example: use c as library specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
azenla committed Sep 7, 2023
1 parent 236f812 commit f31e12d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ffi.pork
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit f31e12d

Please sign in to comment.