root/ext/-test-/iseq_load/iseq_load.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. iseq_load
  2. Init_iseq_load

#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);
}

/* [previous][next][first][last][top][bottom][index][help] */