pike.git / src / pike_error.h

version» Context lines:

pike.git/src/pike_error.h:191:    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); \    } \    } \    Pike_interpreter.recoveries->onerror=(X).previous; \    } while(0) -  - PMOD_EXPORT extern const char msg_assert_onerr[]; - #define ASSERT_ONERROR(X) \ -  do{ \ -  if (!Pike_interpreter.recoveries) break; \ -  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) { \    X.previous = NULL; \    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 */      #define CALL_AND_UNSET_ONERROR(X) do { \    UNSET_ONERROR(X); \    X.func(X.arg); \    }while(0)      #define PIKE_ERROR(NAME, TEXT, SP, ARGS) new_error(NAME, TEXT, SP, ARGS)      /* Prototypes begin here */
pike.git/src/pike_error.h:272:    const char *expected_type,    struct svalue *got,    const char *desc, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT void DECLSPEC(noreturn) math_error(    const char *func, int args,    struct svalue *number,    const char *desc, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT void DECLSPEC(noreturn) out_of_memory_error (    const char *func, int args,    size_t amount) ATTRIBUTE((noreturn)); - PMOD_EXPORT void DECLSPEC(noreturn) permission_error( -  const char *func, -  const struct svalue *base_sp, int args, -  const char *permission_type, -  const char *desc, ...) ATTRIBUTE((noreturn)); +    PMOD_EXPORT void wrong_number_of_args_error(const char *name, int args, int expected)    ATTRIBUTE((noreturn));   void init_error(void);   void cleanup_error(void);   /* Prototypes end here */      /* Some useful error macros. */      PMOD_EXPORT extern const char msg_bad_arg[];