pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:939:   {    INT32 old_level;    if (facility) {    struct pike_string *gc_str;    MAKE_CONST_STRING(gc_str, "gc");    if (facility == gc_str) {    old_level = gc_trace;    gc_trace = level;    }    else { -  bad_arg_error("trace", args, 2, +  bad_arg_error(NULL, args, 2,    "trace facility identifier", Pike_sp-args+1,    "Bad argument 2 to trace(). Unknown trace facility.");    }    }    else {    old_level = Pike_interpreter.trace_level;   #ifdef PIKE_THREADS    if (!all_threads)    Pike_interpreter.trace_level = level;    else {
pike.git/src/builtin.cmod:2650:    break;    case 1: /* Linenumber */    if (THIS->lineno == 0) fill_in_file_and_line();    push_int(THIS->lineno);    break;    case 2: /* Function */    push_svalue(&THIS->_fun);    break;    default: /* Arguments */    { +  struct svalue this;    if ((i > 2) && (THIS->args) && (i-3 < THIS->args->size)) {    push_svalue(THIS->args->item + (i - 3));    break;    } -  bad_arg_error("`[]", args, 1, -  "int(0..)", Pike_sp-args, +  SET_SVAL(this, PIKE_T_OBJECT, 0, object, Pike_fp->current_object); +  index_error(args, &this, Pike_sp-args,    "Bad argument 1 to backtrace_frame->`[](): "    "Expected int(0..%d)\n",    numargs + 2);    }    UNREACHABLE(break);    }    }    if (end_or_none)    f_aggregate(1 + end - index);    }