File: error.pmod

package info (click to toggle)
pike7 7.0.361-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 14,876 kB
  • ctags: 12,334
  • sloc: ansic: 142,667; makefile: 1,526; sh: 1,035; lisp: 290; sed: 34; perl: 3
file content (7 lines) | stat: -rw-r--r-- 196 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
// Moahahahah!
// $Id: error.pmod,v 1.2 1999/08/10 00:27:43 mast Exp $
void `()(string f, mixed ... args)
{
  array(array) b = backtrace();
  throw( ({ sprintf(f, @args), b[..sizeof(b)-2] }) );
}