1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-28 19:19:53 +00:00

Update FFI example.

This commit is contained in:
Calvin Rose 2022-06-18 10:06:39 -05:00
parent a1172529bf
commit a1aab4008f

View File

@ -1,5 +1,5 @@
(def ffi/loc "ffitest/so.so") (def ffi/loc "examples/ffi/so.so")
(def ffi/source-loc "ffitest/so.c") (def ffi/source-loc "examples/ffi/so.c")
(os/execute ["cc" ffi/source-loc "-shared" "-o" ffi/loc] :px) (os/execute ["cc" ffi/source-loc "-shared" "-o" ffi/loc] :px)
(def module (ffi/native ffi/loc)) (def module (ffi/native ffi/loc))