Fix incompatibility with latest mruby

This commit is contained in:
Varun Patil 2020-05-08 19:05:49 +05:30
parent 5a4c86d451
commit 9a6f9c6a68
1 changed files with 2 additions and 0 deletions

View File

@ -219,6 +219,7 @@ runCustomScript(mrb_state *mrb, mrbc_context *ctx, const char *filename)
static void static void
runMrbFile(mrb_state *mrb, const char *filename) runMrbFile(mrb_state *mrb, const char *filename)
{ {
#if 0
/* Execute compiled script */ /* Execute compiled script */
FILE *f = fopen(filename, "rb"); FILE *f = fopen(filename, "rb");
@ -246,6 +247,7 @@ runMrbFile(mrb_state *mrb, const char *filename)
mrb_run(mrb, proc, mrb_top_self(mrb)); mrb_run(mrb, proc, mrb_top_self(mrb));
fclose(f); fclose(f);
#endif
} }
mrb_state * static_mrb; mrb_state * static_mrb;