pike.git / src / pike_error.h

version» Context lines:

pike.git/src/pike_error.h:248:   PMOD_EXPORT void exit_on_error(const void *msg);   PMOD_EXPORT void fatal_on_error(const void *msg);   PMOD_EXPORT DECLSPEC(noreturn) void debug_fatal(const char *fmt, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT DECLSPEC(noreturn) void generic_error_va(    struct object *o, const char *func, const struct svalue *base_sp, int args,    const char *fmt, va_list *fmt_args)    ATTRIBUTE((noreturn));   PMOD_EXPORT DECLSPEC(noreturn) void throw_error_object(    struct object *o,    const char *func, -  struct svalue *base_sp, int args, +  const struct svalue *base_sp, int args,    const char *desc, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT void DECLSPEC(noreturn) generic_error(    const char *func, -  struct svalue *base_sp, int args, +  const struct svalue *base_sp, int args,    const char *desc, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT DECLSPEC(noreturn) void index_error(    const char *func, -  struct svalue *base_sp, int args, +  const struct svalue *base_sp, int args,    struct svalue *val,    struct svalue *ind,    const char *desc, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT DECLSPEC(noreturn) void bad_arg_error(    const char *func, -  struct svalue *base_sp, int args, +  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, -  struct svalue *base_sp, int args, +  const struct svalue *base_sp, int args,    struct svalue *number,    const char *desc, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT void DECLSPEC(noreturn) resource_error(    const char *func, -  struct svalue *base_sp, int args, +  const struct svalue *base_sp, int args,    const char *resource_type,    size_t howmuch,    const char *desc, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT void DECLSPEC(noreturn) permission_error(    const char *func, -  struct svalue *base_sp, int args, +  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. */   
pike.git/src/pike_error.h:346:    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, -  struct svalue *base_sp, int args, +  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)      PMOD_EXPORT extern const char msg_div_by_zero[];   #define SIMPLE_DIVISION_BY_ZERO_ERROR(FUNC) \    math_error(FUNC, Pike_sp-args, 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 */