Skip to content

carsonmcdonald/mruby-c-example

Repository files navigation

Embedding mruby in C

Simple example of mruby embedded in a C application

To get started with the simplest example you can do the following:

git clone --recursive https://github.com/carsonmcdonald/mruby-c-example.git
cd mruby-c-example
make
./simplest

Examples

  • simplest - Simply load and run a script
  • simple_class - Create a class and use it in a script
  • simple_module - Create a module and use it in a script
  • class_under_module - Create a class under a module and use it in a script
  • simple_yield - Create a method that yields to a given block

About

Simple example of mruby embedded in a C application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published