pike.git / src / pike_error.h

version» Context lines:

pike.git/src/pike_error.h: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: pike_error.h,v 1.29 2003/04/01 19:12:48 mast Exp $ + || $Id: pike_error.h,v 1.30 2003/04/02 00:55:09 mast Exp $   */      #ifndef PIKE_ERROR_H   #define PIKE_ERROR_H      #ifdef CONFIGURE_TEST      #include <stdio.h> -  + #include <stdarg.h>      static inline void Pike_fatal (const char *fmt, ...)   {    va_list args;    va_start (args, fmt);    vfprintf (stderr, fmt, args);    abort();   }      #define Pike_error Pike_fatal      #else /* !CONFIGURE_TEST */      #include "machine.h"      #ifdef HAVE_SETJMP_H   #include <setjmp.h>   #undef HAVE_SETJMP_H   #endif    - #include <stdarg.h> -  +    #if 1   PMOD_EXPORT extern const char msg_fatal_error[];   #define Pike_fatal \    (fprintf(stderr,msg_fatal_error,__FILE__,__LINE__),debug_fatal)   #else   /* This is useful when debugging assembler code sometimes... -Hubbe */   #define Pike_fatal \    (fprintf(stderr,"%s: Fatal error:\n",__FILE__ ":" DEFINETOSTR(__LINE__) ),debug_fatal)   #endif