pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: error.c,v 1.121 2004/04/18 02:19:38 mast Exp $ + || $Id: error.c,v 1.122 2004/04/20 13:56:26 nilsson Exp $   */      #define NO_PIKE_SHORTHAND   #include "global.h"   #include "svalue.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "interpret.h"   #include "stralloc.h"   #include "builtin_functions.h"   #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.121 2004/04/18 02:19:38 mast Exp $"); + RCSID("$Id: error.c,v 1.122 2004/04/20 13:56:26 nilsson Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)      PMOD_EXPORT const char msg_fatal_error[] =    "%s:%d: Fatal error:\n";   #ifdef PIKE_DEBUG   PMOD_EXPORT const char msg_unsetjmp_nosync_1[] =    "UNSETJMP out of sync! (last SETJMP at %s)!\n";   PMOD_EXPORT const char msg_unsetjmp_nosync_2[] =
pike.git/src/error.c:439: Inside #if 1
     /*! @class MasterObject    */      /*! @decl string describe_backtrace(mixed exception)    *!    *! Called by various routines to format a readable    *! description of an exception.    *!    *! @param exception -  *! Something that was thrown. Usually an @[Error] object, or +  *! Something that was thrown. Usually an @[Error.Generic] object, or    *! an array with the following content:    *! @array    *! @elem string msg    *! Error message.    *! @elem array(backtrace_frame|array(mixed)) backtrace    *! Backtrace to the point where the exception occurred.    *! @endarray    *!    *! @returns    *! Returns a string describing the exeception.
pike.git/src/error.c:462: Inside #if 1
   *! Usually added by the initialization code the global name space    *! with @[add_constant()].    *!    *! @seealso    *! @[predef::describe_backtrace()]    */      /*! @endclass    */    - /*! @class Error + /*! @module Error    */    -  + /*! @class Generic +  *! Class for exception objects for errors of unspecified type. +  */ +    #define ERR_DECLARE   #include "errors.h"      /*! @decl array cast(string type)    *!    *! Cast operator.    *!    *! @note    *! The only supported type to cast to is @expr{"array"@}, which    *! generates and old-style error.
pike.git/src/error.c:631:    push_int (Pike_sp[-2].u.array->size-2);    o_range ();    assign_to_short_svalue ((union anything *)&GENERIC_ERROR_THIS->error_backtrace,    PIKE_T_ARRAY, Pike_sp-1);    pop_n_elems(args+1);   }      /*! @endclass    */    + /*! @endmodule +  */ +    #ifdef ERROR_DEBUG   #define DWERROR(X) fprintf X   #else /* !ERROR_DEBUG */   #define DWERROR(X)   #endif /* ERROR_DEBUG */      #define INIT_ERROR(FEL)\    va_list foo; \    struct object *o; \    va_start(foo,desc); \