1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-01 04:19:55 +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/source-loc "ffitest/so.c")
(def ffi/loc "examples/ffi/so.so")
(def ffi/source-loc "examples/ffi/so.c")
(os/execute ["cc" ffi/source-loc "-shared" "-o" ffi/loc] :px)
(def module (ffi/native ffi/loc))