mirror of
https://github.com/janet-lang/janet
synced 2024-11-05 08:16:16 +00:00
Update FFI example.
This commit is contained in:
parent
a1172529bf
commit
a1aab4008f
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user