Skip to content
This repository
tree: 70916d030c
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (12 sloc) 0.306 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "mruby.h"
#include "mruby/irep.h"
#include "mruby/dump.h"
#include "mruby/string.h"
#include "mruby/proc.h"

extern const char mrblib_irep[];

void
mrb_init_mrblib(mrb_state *mrb)
{
  int n = mrb_read_irep(mrb, mrblib_irep);

  mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb));
}
Something went wrong with that request. Please try again.