c2ffi4rb
c2ffi - FFI binding generator - for Ruby
installation
gem install c2ffi4rb
Usage
First, produce a spec
file using c2ffi
:
c2ffi -M macros.h -o example.json example.h
c2ffi -o macros.json macros.h
Now you can generate a file manually with the included tool,
c2ffi-ruby
, as follows:
c2ffi4rb example.json macro.json > simple.rb
This produces the simple.rb
file, as included.