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.
- Host: GitHub
- URL: https://github.com/afaur/mruby_c_example
- Owner: afaur
- Created: 2015-09-04T00:59:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-13T17:16:34.000Z (almost 11 years ago)
- Last Synced: 2025-02-12T13:56:51.571Z (over 1 year ago)
- Language: C
- Size: 1.71 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.