Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (16 sloc) 0.385 kb
c8c0ef8 @bovi mrit - Embeddable Ruby ISO Test
bovi authored
1 #include "mruby.h"
2 #include "mruby/irep.h"
3 #include "mruby/dump.h"
4 #include "mruby/string.h"
5 #include "mruby/proc.h"
6
8085817 @matz make test restructuring
matz authored
7 extern const char mrbtest_irep[];
c8c0ef8 @bovi mrit - Embeddable Ruby ISO Test
bovi authored
8
9 void
8085817 @matz make test restructuring
matz authored
10 mrb_init_mrbtest(mrb_state *mrb)
c8c0ef8 @bovi mrit - Embeddable Ruby ISO Test
bovi authored
11 {
8085817 @matz make test restructuring
matz authored
12 int n = mrb_read_irep(mrb, mrbtest_irep);
c8c0ef8 @bovi mrit - Embeddable Ruby ISO Test
bovi authored
13
14 mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb));
8846f75 @matz refactor test driver
matz authored
15 if (mrb->exc) {
16 mrb_p(mrb, mrb_obj_value(mrb->exc));
17 exit(0);
18 }
c8c0ef8 @bovi mrit - Embeddable Ruby ISO Test
bovi authored
19 }
20
Something went wrong with that request. Please try again.