pike.git / src / pike_error.h

version» Context lines:

pike.git/src/pike_error.h:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $Id: pike_error.h,v 1.3 2000/12/04 19:38:26 mast Exp $ +  * $Id: pike_error.h,v 1.4 2000/12/05 21:08:20 per Exp $    */   #ifndef ERROR_H   #define ERROR_H      #include "machine.h"      #ifdef HAVE_SETJMP_H   #include <setjmp.h>   #undef HAVE_SETJMP_H   #endif
pike.git/src/pike_error.h:223:    char *func,    struct svalue *base_sp, int args,    char *permission_type,    char *desc, ...) ATTRIBUTE((noreturn, format(printf, 5, 6)));   void wrong_number_of_args_error(char *name, int args, int expected);   void init_error(void);   void cleanup_error(void);   /* Prototypes end here */      #define fatal \ -  fprintf(stderr,"%s:%d: Fatal Pike_error:\n",__FILE__,__LINE__),debug_fatal +  fprintf(stderr,"%s:%d: Fatal error:\n",__FILE__,__LINE__),debug_fatal    - /* Some useful Pike_error macros. */ + /* Some useful error macros. */    -  +    #define SIMPLE_BAD_ARG_ERROR(FUNC, ARG, EXPECT) \    bad_arg_error(FUNC, Pike_sp-args, args, ARG, EXPECT, Pike_sp+ARG-1-args,\    "Bad argument %d to %s(). Expected %s\n", \    ARG, FUNC, EXPECT)      #define SIMPLE_TOO_FEW_ARGS_ERROR(FUNC, ARG) \    bad_arg_error(FUNC, Pike_sp-args, args, ARG, "void", 0,\    "Too few arguments to %s().\n",FUNC)      #define SIMPLE_OUT_OF_MEMORY_ERROR(FUNC, AMOUNT) \
pike.git/src/pike_error.h:284:   #define exception_endtry \    else \    __exception_rethrow = 1; \    if(!__is_exception) \    UNSETJMP(exception); \    if(__exception_rethrow) \    rethrow; \    } \    while(0)    - /* Generic Pike_error stuff */ + /* Generic error stuff */   #define ERR_EXT_DECLARE   #include "errors.h"      #endif