Skip to content
Snippets Groups Projects
Commit a89d21a6 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Remove the stack frame of the error function itself from the

backtrace.

Rev: lib/modules/error.pmod:1.2
parent 53ffab14
No related branches found
No related tags found
No related merge requests found
// Moahahahah!
// $Id: error.pmod,v 1.1 1998/04/30 07:02:33 per Exp $
void `()(mixed ... args)
// $Id: error.pmod,v 1.2 1999/08/10 00:27:43 mast Exp $
void `()(string f, mixed ... args)
{
throw( ({ sprintf(@args), backtrace() }) );
array(array) b = backtrace();
throw( ({ sprintf(f, @args), b[..sizeof(b)-2] }) );
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment