Created
October 30, 2016 12:58
-
-
Save mzumi/edadc66a5f6cd5473f8674fcad7b22f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ffi' | |
module FFISample | |
extend FFI::Library | |
ffi_lib 'target/release/libffi_sample.dylib' | |
attach_function :perform, [:string], :string | |
end | |
puts FFISample.perform('こんにちわ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment