Project

General

Profile

Feature #578 ยป iseq.diff

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

View differences:

iseq.c (working copy)
1008 1008
{
1009 1009
    VALUE ret = Qnil;
1010 1010
    rb_iseq_t *iseq;
1011
    extern rb_iseq_t *rb_method_get_iseq(VALUE body);
1012 1011

  
1013 1012
    rb_secure(1);
1014 1013

  
1015
    if ((iseq = rb_method_get_iseq(body)) != 0) {
1016
	ret = rb_iseq_disasm(iseq->self);
1017
    }
1018
    else if (rb_obj_is_proc(body)) {
1014
    if (rb_obj_is_proc(body)) {
1019 1015
	rb_proc_t *proc;
1020 1016
	VALUE iseqval;
1021 1017
	GetProcPtr(body, proc);
......
1024 1020
	    ret = rb_iseq_disasm(iseqval);
1025 1021
	}
1026 1022
    }
1023
    else {
1024
       extern rb_iseq_t *rb_method_get_iseq(VALUE body);
1027 1025

  
1026
       if ((iseq = rb_method_get_iseq(body)) != 0) {
1027
	ret = rb_iseq_disasm(iseq->self);
1028
      }
1029
    }
1030

  
1028 1031
    return ret;
1029 1032
}
1030 1033