Skip to content

i5ting/mruby-cfunc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mruby-cfunc

Interface to C functions on mruby. it's based on libffi.

Install

It's mrbgems.

When you use in your project, please add below to your build_config.rb.

  conf.gem 'path/to/here' do |g|
    # g.use_pkg_config # use pkg-config for libffi linking
    # g.download_libffi # download and link latest libffi
  end

If you want to run tests, please run below command.

make test

Limitation

  • mrb_int should be 64bit int. define MRB_INT64 in mrbconf.h

Todo

  • Test!
  • Improve error handling
  • Support anonymous struct
  • Examples
  • Documents

Contributing

Feel free to open tickets or send pull requests with improvements. Thanks in advance for your help!

Authors

Original Authors "MobiRuby developers" are https://github.com/mobiruby/mobiruby-ios/tree/master/AUTHORS

License

See Copyright Notice in cfunc.h.

About

Interface to C functions on mruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published