pike.git / src / pike_error.h

version» Context lines:

pike.git/src/pike_error.h:78:   #define THROW_N_A 0   #define THROW_ERROR 10   #define THROW_THREAD_EXIT 20   #define THROW_THREAD_KILLED 30   #define THROW_EXIT 40   #define THROW_MAX_SEVERITY 100      /* #define ONERROR_DEBUG */      #ifdef ONERROR_DEBUG - #define OED_FPRINTF(X) fprintf X + #define OED_FPRINTF(...) fprintf(stderr, __VA_ARGS__)   #else /* !ONERROR_DEBUG */ - #define OED_FPRINTF(X) + #define OED_FPRINTF(...)   #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;
pike.git/src/pike_error.h:119:   } JMP_BUF;      PMOD_EXPORT extern struct svalue throw_value;   PMOD_EXPORT extern int throw_severity;      #ifdef PIKE_DEBUG   PMOD_EXPORT extern const char msg_unsetjmp_nosync_1[];   PMOD_EXPORT extern const char msg_unsetjmp_nosync_2[];   #define UNSETJMP(X) do{ \    check_recovery_context(); \ -  OED_FPRINTF((stderr, "unsetjmp(%p) %s:%d\n", \ -  &(X), __FILE__, __LINE__)); \ +  OED_FPRINTF("unsetjmp(%p) %s:%d\n", \ +  &(X), __FILE__, __LINE__); \    if(Pike_interpreter.recoveries != &X) { \    if(Pike_interpreter.recoveries) \    Pike_fatal(msg_unsetjmp_nosync_1, \    Pike_interpreter.recoveries->file); \    else \    Pike_fatal("%s", msg_unsetjmp_nosync_2); \    } \    Pike_interpreter.recoveries=X.previous; \    check_recovery_context(); \    }while (0)
pike.git/src/pike_error.h:155:   #define SETJMP_SP(jmp, stack_pop_levels) \    LOW_SETJMP((init_recovery(&jmp, stack_pop_levels)->recovery))   #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__)); \ +  OED_FPRINTF("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) { \    X.previous = NULL; \    break; \    } \    X.previous=Pike_interpreter.recoveries->onerror; \    X.file = __FILE__; \    X.line = __LINE__; \    Pike_interpreter.recoveries->onerror=&X; \    }while(0)      PMOD_EXPORT extern const char msg_last_setjmp[];   PMOD_EXPORT extern const char msg_unset_onerr_nosync_1[];   PMOD_EXPORT extern const char msg_unset_onerr_nosync_2[];   #define UNSET_ONERROR(X) do { \    check_recovery_context(); \ -  OED_FPRINTF((stderr, "UNSET_ONERROR(%p) %s:%d\n", \ -  &(X), __FILE__, __LINE__)); \ +  OED_FPRINTF("UNSET_ONERROR(%p) %s:%d\n", \ +  &(X), __FILE__, __LINE__); \    if(!Pike_interpreter.recoveries) break; \    if(Pike_interpreter.recoveries->onerror != &(X)) { \    fprintf(stderr,msg_last_setjmp, \    Pike_interpreter.recoveries->file); \    if (Pike_interpreter.recoveries->onerror) { \    Pike_fatal(msg_unset_onerr_nosync_1, \    Pike_interpreter.recoveries->onerror, &(X), \    Pike_interpreter.recoveries->onerror->file); \    } else { \    Pike_fatal("%s", msg_unset_onerr_nosync_2); \