Project

General

Profile

Bug #10959 » runner.c

rb_iseq_load wrapper - alvoskov (Alexey Voskov), 03/10/2015 03:33 PM

 
#include <ruby.h>
#include <stdio.h>

VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);

static VALUE run_iseq(VALUE self, VALUE data)
{
return rb_iseq_load(data, Qnil, Qnil);
}

void Init_iseqtest()
{
rb_define_global_function("run_iseq", RUBY_METHOD_FUNC(run_iseq), 1);
}
(5-5/6)