12 lines
248 B
Ruby
12 lines
248 B
Ruby
|
#!/usr/bin/env ruby
|
||
|
|
||
|
require 'fiddle'
|
||
|
|
||
|
lib = Fiddle::dlopen './target/debug/libimag_ruby.so'
|
||
|
Fiddle::Function::new(lib['imag_ruby_initialize'], [], Fiddle::TYPE_VOIDP).call
|
||
|
|
||
|
works = (not RStoreId.new_baseless("test").nil?)
|
||
|
|
||
|
puts "Works: #{works}"
|
||
|
|