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.8 2001/01/12 02:15:57 mast Exp $ +  * $Id: pike_error.h,v 1.9 2001/01/20 21:35:05 mast 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:224:    struct svalue *base_sp, int args,    char *permission_type,    char *desc, ...) ATTRIBUTE((noreturn, format(printf, 5, 6)));   PMOD_EXPORT void wrong_number_of_args_error(char *name, int args, int expected);   void init_error(void);   void cleanup_error(void);   /* Prototypes end here */      #if 1   #define fatal \ -  fprintf(stderr,"%s:%d: Fatal error:\n",__FILE__,__LINE__),debug_fatal +  (fprintf(stderr,"%s:%d: Fatal error:\n",__FILE__,__LINE__),debug_fatal)   #else   /* This is useful when debugging assembler code sometimes... -Hubbe */   #define fatal \ -  fprintf(stderr,"%s: Fatal error:\n",__FILE__ ":" DEFINETOSTR(__LINE__) ),debug_fatal +  (fprintf(stderr,"%s: Fatal error:\n",__FILE__ ":" DEFINETOSTR(__LINE__) ),debug_fatal)   #endif      /* 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)