a580e12000-09-27Fredrik Hübinette (Hubbe) #pike __REAL_VERSION__
a20af62000-09-26Fredrik Hübinette (Hubbe) 
bfab652001-12-20Martin Nilsson //! @decl void error(string message) //! @appears error //! //! Identical to @tt{throw(({message,backtrace()}))@}.
9f6d0c1998-04-30Per Hedbor // Moahahahah!
bfab652001-12-20Martin Nilsson // $Id: error.pmod,v 1.6 2001/12/20 15:04:12 nilsson Exp $
a89d211999-08-10Martin Stjernholm void `()(string f, mixed ... args)
9f6d0c1998-04-30Per Hedbor {
a89d211999-08-10Martin Stjernholm  array(array) b = backtrace();
99ab642001-03-23Martin Stjernholm  if (sizeof(args)) f = sprintf(f, @args); throw( ({ f, b[..sizeof(b)-2] }) );
9f6d0c1998-04-30Per Hedbor }