This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
|
require 'ffi'
|
|
|
|
module Hello
|
|
extend FFI::Library
|
|
ffi_lib 'target/release/libembed.dylib'
|
|
attach_function :process, [], :void
|
|
end
|
|
|
|
Hello.process
|
|
|
|
puts 'done!' |