pike.git / src / pike_error.h

version» Context lines:

pike.git/src/pike_error.h:271:    const char *func,    const struct svalue *base_sp, int args,    int which_arg,    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) resource_error( -  const char *func, -  const struct svalue *base_sp, int args, -  const char *resource_type, -  size_t howmuch, -  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 */
pike.git/src/pike_error.h:343:    */   #define SIMPLE_WRONG_NUM_ARGS_ERROR(FUNC, ARG) \    wrong_number_of_args_error (FUNC, args, ARG)   /* The following is for compatibility. */   #define SIMPLE_TOO_FEW_ARGS_ERROR(FUNC, ARG) \    wrong_number_of_args_error (FUNC, args, ARG)      PMOD_EXPORT extern const char msg_out_of_mem[];   PMOD_EXPORT extern const char msg_out_of_mem_2[];    - PMOD_EXPORT void DECLSPEC(noreturn) out_of_memory_error ( -  const char *func, -  const struct svalue *base_sp, int args, -  size_t amount) ATTRIBUTE((noreturn)); -  +    #define SIMPLE_OUT_OF_MEMORY_ERROR(FUNC, AMOUNT) \ -  out_of_memory_error(FUNC, Pike_sp-args, args, AMOUNT) +  out_of_memory_error(FUNC, args, AMOUNT)      PMOD_EXPORT extern const char msg_div_by_zero[];   #define SIMPLE_DIVISION_BY_ZERO_ERROR(FUNC) \    math_error(FUNC, args, 0, msg_div_by_zero)      #ifndef PIKE_DEBUG   #define check_recovery_context() ((void)0)   #endif      /* Generic error stuff */   #define ERR_EXT_DECLARE   #include "errors.h"      #endif /* !CONFIGURE_TEST */      #endif /* PIKE_ERROR_H */