Interface to C functions on mruby
C Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
include pass build Dec 17, 2013
mrblib document Dec 20, 2013
src use Dec 16, 2013
test #22 Support array in struct member Jun 1, 2013
.gitignore Adopted mrbgems Dec 21, 2012
.travis.yml Remove clang test on TravisCI Jan 10, 2013
AUTHORS Add my name to AUTHORS. Jul 23, 2012
LICENSE init commit and still have bugs Jul 21, 2012
Makefile #22 Support array in struct member Jun 1, 2013
README.md
mrbgem.rake Update for latest mruby Sep 16, 2013
run_test.rb Update for latest mruby Sep 16, 2013

README.md

mruby-cfunc

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

Build status

Build Status

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

    # if your libffi is installed in a non standard path
    # g.cc.include_paths << '[...]/include'
    # g.linker.library_paths << '[...]/lib'
  end

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

make test

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.