pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:15:   #include "array.h"   #include "object.h"   #include "main.h"   #include "builtin_functions.h"   #include "backend.h"   #include "operators.h"   #include "module_support.h"   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.73 2001/07/01 21:34:50 mast Exp $"); + RCSID("$Id: error.c,v 1.74 2001/08/15 22:18:00 mast Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)      /*    * Attempt to inhibit throwing of errors if possible.    * Used by exit_on_error() to avoid infinite sprintf() loops.    */   int Pike_inhibit_errors = 0;   
pike.git/src/error.c:549:    dmalloc_touch_svalue(Pike_sp);       free_svalue(& throw_value);    throw_value.type=PIKE_T_OBJECT;    throw_value.u.object=o;    throw_severity = THROW_ERROR;    in_error=0;    pike_throw(); /* Hope someone is catching, or we will be out of balls. */   }    +  + PMOD_EXPORT DECLSPEC(noreturn) void throw_error_object( +  struct object *o, +  char *func, +  struct svalue *base_sp, int args, +  char *desc, ...) ATTRIBUTE((noreturn,format (printf, 5, 6))) + { +  va_list foo; +  va_start(foo,desc); +  ASSERT_THREAD_SWAPPED_IN(); +  DWERROR((stderr, "%s(): Throwing an error object\n", func)); +  ERROR_DONE(generic); + } +    PMOD_EXPORT DECLSPEC(noreturn) void generic_error(    char *func,    struct svalue *base_sp, int args,    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 4, 5)))   {    INIT_ERROR(generic);    ERROR_DONE(generic);   }      PMOD_EXPORT DECLSPEC(noreturn) void index_error(