pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:4332:    */      //! @appears describe_backtrace   //! Return a readable message that describes where the backtrace   //! @[trace] was made (by @[backtrace]).   //!   //! It may also be an error object or array (typically caught by a   //! @[catch]), in which case the error message also is included in the   //! description.   //! + //! Pass @[linewidth] -1 to disable wrapping of the output. + //!   //! @seealso   //! @[backtrace()], @[describe_error()], @[catch()], @[throw()]   //!   string describe_backtrace(mixed trace, void|int linewidth)   {    int e;    string ret;    int backtrace_len=((int)getenv("PIKE_BACKTRACE_LEN")) || bt_max_string_len;       if(!linewidth)
pike.git/lib/master.pike.in:4488:    }    else if (stringp(tmp[2])) {    data = [string]tmp[2];    } else    data ="unknown function";       data+="("+    desc->describe_comma_list(tmp[3..], backtrace_len)+    ")";    -  if(sizeof(pos)+sizeof(data) < linewidth-4) +  if((linewidth == -1) || (sizeof(pos)+sizeof(data) < linewidth-4))    {    row=sprintf("%s: %s",pos,data);    }else{    row=sprintf("%s:\n%s",pos,sprintf(" %*-/s",linewidth-6,data));    }    } else {    row = pos;    }    }    else