Created
September 21, 2014 11:44
-
-
Save samflores/f003f23c30f5cb4c4a36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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