~tim/scheme-vm

ref: ac6b8bca1104b34b18f766537d99fbc1be5c6b6b scheme-vm/test.rb -rw-r--r-- 195 bytes
ac6b8bcaTim Morgan Playing around with ruby-sys 4 years ago
                                                                                
1
2
3
4
5
6
require 'fiddle'

library = Fiddle::dlopen('target/release/libscheme_vm.dylib')
is_ok = Fiddle::Function.new(library['is_ok'], [Fiddle::TYPE_VOIDP], Fiddle::TYPE_VOIDP)

p is_ok.call(ARGV.first)