Feature #578 » iseq.diff
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;
|
||
}
|
||
- « Previous
- 1
- 2
- Next »