An open API service indexing awesome lists of open source software.

https://github.com/afaur/mruby_c_example

Reads mruby code at runtime and is able to call module::methods that execute c code.
https://github.com/afaur/mruby_c_example

Last synced: over 1 year ago
JSON representation

Reads mruby code at runtime and is able to call module::methods that execute c code.

Awesome Lists containing this project

README

          

## Notes

This is an example of loading mruby code at runtime that can use c functions as
exposed modules.

C Source for the experimental mruby sqlite gem (https://github.com/mattn/mruby-sqlite3)
has been manually added in to this repo to show an example of how mruby gems work.

## Running

~~~
./compile.sh && ./mruby_c_example
~~~

## Included files

Project includes `qo` inside the bin directory (https://github.com/andlabs/qo) which makes compiling easier.