mirror of
https://github.com/janet-lang/janet
synced 2025-09-05 04:18:03 +00:00
Update FFI example.
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user