Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Interface to C functions on mruby
C Ruby
branch: master

Merge pull request #28 from ppibburr/master

use `mrb_intern_cstr` since `mrb_intern` has changed its signature
latest commit c27a12d182
@masuidrive masuidrive authored
Failed to load latest commit information.
include pass build
mrblib document
src
test #22 Support array in struct member
.gitignore Adopted mrbgems
.travis.yml Remove clang test on TravisCI
AUTHORS Add my name to AUTHORS.
LICENSE init commit and still have bugs
Makefile
README.md added how to force libffi include/lib path
mrbgem.rake Update for latest mruby
run_test.rb Update for latest mruby

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.

Something went wrong with that request. Please try again.