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.33 2005/08/29 10:45:46 jonasw Exp $ + || $Id: pike_error.h,v 1.34 2006/05/10 19:43:54 mast Exp $   */      #ifndef PIKE_ERROR_H   #define PIKE_ERROR_H      #include <stdarg.h>      #ifdef CONFIGURE_TEST      #include <stdio.h>
pike.git/src/pike_error.h:317:    bad_arg_error (FUNC, Pike_sp-args, args, ARG, NULL, Pike_sp+ARG-1-args, \    msg_bad_arg_2, ARG, FUNC, PROBLEM)      #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[]; +  + static INLINE void DECLSPEC(noreturn) out_of_memory_error ( +  const char *func, +  struct svalue *base_sp, int args, +  size_t amount) ATTRIBUTE((noreturn)); + static INLINE void DECLSPEC(noreturn) out_of_memory_error ( +  const char *func, +  struct svalue *base_sp, int args, +  size_t amount) + { +  resource_error (func, base_sp, args, "memory", amount, +  msg_out_of_mem_2, amount); + } +    #define SIMPLE_OUT_OF_MEMORY_ERROR(FUNC, AMOUNT) \ -  resource_error(FUNC, Pike_sp-args, args, "memory", AMOUNT, msg_out_of_mem) +  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      /* Experimental convenience exception macros. */