Project

General

Profile

Bug #10959 ยป runner.c

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

 
1
#include <ruby.h>
2
#include <stdio.h>
3

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

    
6
static VALUE run_iseq(VALUE self, VALUE data)
7
{
8
	return rb_iseq_load(data, Qnil, Qnil);
9
}
10

    
11
void Init_iseqtest()
12
{
13
	rb_define_global_function("run_iseq", RUBY_METHOD_FUNC(run_iseq), 1);
14
}