pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:83:       if(i != sp[-1].type)    {    if(i == T_MIXED) return;       if(sp[-2].type == T_OBJECT)    {    push_string(describe_type(s));    if(!sp[-2].u.object->prog)    error("Cast called on destructed object.\n"); -  if(sp[-2].u.object->prog->lfuns[LFUN_CAST] == -1) +  if(FIND_LFUN(sp[-2].u.object->prog,LFUN_CAST) == -1)    error("No cast method in object.\n");    apply_lfun(sp[-2].u.object, LFUN_CAST, 1);    free_svalue(sp-2);    sp[-2]=sp[-1];    sp--;    return;    }       switch(i)    {
pike.git/src/opcodes.c:228:    }       if(sp[-2].type == T_OBJECT)    {    struct pike_string *s;    s=describe_type(sp[-1].u.string);    pop_stack();    push_string(s);    if(!sp[-2].u.object->prog)    error("Cast called on destructed object.\n"); -  if(sp[-2].u.object->prog->lfuns[LFUN_CAST] == -1) +  if(FIND_LFUN(sp[-2].u.object->prog,LFUN_CAST) == -1)    error("No cast method in object.\n");    apply_lfun(sp[-2].u.object, LFUN_CAST, 1);    free_svalue(sp-2);    sp[-2]=sp[-1];    sp--;    return;    }       pop_stack();    switch(i)