Skip to content

kojix2/c2ffi4rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c2ffi4rb

Gem Version test

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 example.h macros.h

Next, use c2ffi4rb to generate ruby code.

c2ffi4rb example.json macro.json > simple.rb

Finally, improve simple.rb manually to complete the binding.

Development

To run tests, install c2ffi, Cairo, and pkg-config in advance. Then execute rake test.

Licence

About

Automatic Ruby-FFI Binding Generator

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages