Skip to content

Instantly share code, notes, and snippets.

@samflores
Created September 21, 2014 11:44
Show Gist options
  • Save samflores/f003f23c30f5cb4c4a36 to your computer and use it in GitHub Desktop.
Save samflores/f003f23c30f5cb4c4a36 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include <stdio.h>
#include <mruby.h>
#include <mruby/compile.h>
int main(void) {
mrb_state *mrb = mrb_open();
char code[] = "p 'hello world!'";
printf("Hello from mruby!\n");
mrb_load_string(mrb, code);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment