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.42 2008/01/26 22:34:22 mast Exp $ + || $Id: pike_error.h,v 1.43 2008/04/12 14:04:09 grubba Exp $   */      #ifndef PIKE_ERROR_H   #define PIKE_ERROR_H      #include <stdarg.h>      #ifdef CONFIGURE_TEST      #include <stdio.h>
pike.git/src/pike_error.h:89: Inside #if defined(ONERROR_DEBUG)
     #ifdef ONERROR_DEBUG   #define OED_FPRINTF(X) fprintf X   #else /* !ONERROR_DEBUG */   #define OED_FPRINTF(X)   #endif /* ONERROR_DEBUG */      typedef struct ONERROR   {    struct ONERROR *previous; +  struct pike_frame *frame_pointer;    error_call func;    void *arg;   #ifdef PIKE_DEBUG    const char *file;    int line;   #endif /* PIKE_DEBUG */   } ONERROR;      typedef struct JMP_BUF   {
pike.git/src/pike_error.h:158:   #define UNSETJMP(X) Pike_interpreter.recoveries=X.previous   #endif /* !PIKE_DEBUG */         #ifdef PIKE_DEBUG   #define SET_ONERROR(X,Y,Z) \    do{ \    check_recovery_context(); \    OED_FPRINTF((stderr, "SET_ONERROR(%p, %p, %p) %s:%d\n", \    &(X), (Y), (void *)(Z), __FILE__, __LINE__)); \ +  X.frame_pointer = Pike_interpreter.frame_pointer; \    X.func=(error_call)(Y); \    DO_IF_DMALLOC( if( X.func == free ) X.func=dmalloc_free;) \    X.arg=(void *)(Z); \    if(!Pike_interpreter.recoveries) break; \    X.previous=Pike_interpreter.recoveries->onerror; \    X.file = __FILE__; \    X.line = __LINE__; \    Pike_interpreter.recoveries->onerror=&X; \    }while(0)   
pike.git/src/pike_error.h:203:    if (Pike_interpreter.recoveries->onerror != &X) { \    Pike_fatal(msg_assert_onerr, \    __FILE__, __LINE__, &(X)); \    } \    }while(0)   #else /* !PIKE_DEBUG */   #define SET_ONERROR(X,Y,Z) \    do{ \    X.func=(error_call)(Y); \    X.arg=(void *)(Z); \ +  X.frame_pointer = Pike_interpreter.frame_pointer; \    if(!Pike_interpreter.recoveries) break; \    X.previous=Pike_interpreter.recoveries->onerror; \    Pike_interpreter.recoveries->onerror=&X; \    }while(0)      #define UNSET_ONERROR(X) Pike_interpreter.recoveries && (Pike_interpreter.recoveries->onerror=X.previous)      #define ASSERT_ONERROR(X)   #endif /* PIKE_DEBUG */