pike.git / lib / modules / error.pmod

version» Context lines:

pike.git/lib/modules/error.pmod:1:   #pike __REAL_VERSION__    + //! @decl void error(string message) + //! @appears error + //! + //! Identical to @tt{throw(({message,backtrace()}))@}. +    // Moahahahah! - // $Id: error.pmod,v 1.5 2001/03/23 18:36:27 mast Exp $ + // $Id: error.pmod,v 1.6 2001/12/20 15:04:12 nilsson Exp $   void `()(string f, mixed ... args)   {    array(array) b = backtrace();    if (sizeof(args)) f = sprintf(f, @args);    throw( ({ f, b[..sizeof(b)-2] }) );   }