mirror of
https://github.com/janet-lang/janet
synced 2026-09-29 12:21:41 +00:00
Update FFI example.
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user