text: /* FROM: https://github.com/hone/mruby-cli/blob/master/tools/mruby-cli/mruby-cli.c */
  #include <stdlib.h>
  #include <stdio.h>
  
  /* Include the mruby header */
  #include <mruby.h>
  #include <mruby/array.h>
  
  int main(int argc, char *argv[])
  {
    mrb_state *mrb = mrb_open();
    mrb_value ARGV = mrb_ary_new_capa(mrb, argc);
    int i;
    int return_value;
  
    for (i = 0; i < argc; i++) {
      mrb_ary_push(mrb, ARGV, mrb_str_new_cstr(mrb, argv[i]));
    }
    mrb_define_global_const(mrb, "ARGV", ARGV);
  
    // call __main__(ARGV)
    mrb_funcall(mrb, mrb_top_self(mrb), "__main__", 1, ARGV);
  
    return_value = EXIT_SUCCESS;
  
    if (mrb->exc) {
      mrb_print_error(mrb);
      return_value = EXIT_FAILURE;
    }
    mrb_close(mrb);
  
    return return_value;
  }
  