Project

General

Profile

Feature #578 » iseq.diff

rogerdpack (Roger Pack), 01/20/2010 05:14 AM

View differences:

iseq.c (working copy)
{
VALUE ret = Qnil;
rb_iseq_t *iseq;
extern rb_iseq_t *rb_method_get_iseq(VALUE body);
rb_secure(1);
if ((iseq = rb_method_get_iseq(body)) != 0) {
ret = rb_iseq_disasm(iseq->self);
}
else if (rb_obj_is_proc(body)) {
if (rb_obj_is_proc(body)) {
rb_proc_t *proc;
VALUE iseqval;
GetProcPtr(body, proc);
......
ret = rb_iseq_disasm(iseqval);
}
}
else {
extern rb_iseq_t *rb_method_get_iseq(VALUE body);
if ((iseq = rb_method_get_iseq(body)) != 0) {
ret = rb_iseq_disasm(iseq->self);
}
}
return ret;
}
(2-2/2)