1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-/iseq_load/iseq_load.c
nobu f64ba5d519 iseq_load.c: rb_path2class
* ext/-test-/iseq_load/iseq_load.c (Init_iseq_load): use
  rb_path2class.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-03 23:24:57 +00:00

21 lines
426 B
C

#include <ruby.h>
VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
static VALUE
iseq_load(int argc, VALUE *argv, VALUE self)
{
VALUE data, opt = Qnil;
rb_scan_args(argc, argv, "11", &data, &opt);
return rb_iseq_load(data, 0, opt);
}
void
Init_iseq_load(void)
{
VALUE rb_cISeq = rb_path2class("RubyVM::InstructionSequence");
rb_define_singleton_method(rb_cISeq, "iseq_load", iseq_load, -1);
}