~tim/scheme-vm

ref: 6f325e04c5c5c20942580e71c85c03b7ec6f1519 scheme-vm/test.rb -rw-r--r-- 174 bytes
6f325e04Tim Morgan Experiment with Rust extension 5 years ago
                                                                                
1
2
3
4
5
6
7
require 'fiddle'

library = Fiddle::dlopen('target/release/libscheme_vm.dylib')

Fiddle::Function.new(library['initialize_string'], [], Fiddle::TYPE_VOIDP).call

p ''.weird?