pike.git / src / pike_error.h

version» Context lines:

pike.git/src/pike_error.h:248:   PMOD_EXPORT void DECLSPEC(noreturn) generic_error(    const char *func,    const struct svalue *base_sp, int args,    const char *desc, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT DECLSPEC(noreturn) void index_error(    const char *func, int args,    struct svalue *val,    struct svalue *ind,    const char *desc, ...) ATTRIBUTE((noreturn));   PMOD_EXPORT DECLSPEC(noreturn) void bad_arg_error( -  const char *func, -  const struct svalue *base_sp, int args, +  const char *func, 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) out_of_memory_error (    const char *func, int args,
pike.git/src/pike_error.h:281:   /**    * Throw an exception that the type of an argument is wrong. ARG, FUNC    * and EXPECT will be inserted into "Bad argument %d to %s(). Expected    * %s.\n"    *    * @param FUNC The name of the function, e.g. "create".    * @param ARG The number of the argument, e.g. 1 for the first.    * @param EXPECT The expected type, e.g. "int(0..1)".    */   #define SIMPLE_ARG_TYPE_ERROR(FUNC, ARG, EXPECT) \ -  bad_arg_error(FUNC, NULL, args, ARG, EXPECT, Pike_sp+ARG-1-args,\ +  bad_arg_error(FUNC, args, ARG, EXPECT, Pike_sp+ARG-1-args,\    msg_bad_arg, ARG, FUNC, EXPECT)   /* Less descriptive macro name kept for compatibility. */   #define SIMPLE_BAD_ARG_ERROR(FUNC, ARG, EXPECT) \ -  bad_arg_error(FUNC, NULL, args, ARG, EXPECT, Pike_sp+ARG-1-args,\ +  bad_arg_error(FUNC, args, ARG, EXPECT, Pike_sp+ARG-1-args,\    msg_bad_arg, ARG, FUNC, EXPECT)      PMOD_EXPORT extern const char msg_bad_arg_2[];      /**    * Throw an exception that there is some problem with the argument    * other than the wrong type. PROBLEM is a full sentence without a    * trailing newline. Together with FUNC and ARG they will be inserted    * into "Bad argument %d to %s(). %s\n"    *    * @param FUNC The name of the function, e.g. "create".    * @param ARG The number of the argument, e.g. 1 for the first.    * @param PROBLEM Describes the problem with the argument, e.g. "The    * number of bytes has to be even."    */   #define SIMPLE_ARG_ERROR(FUNC, ARG, PROBLEM) \ -  bad_arg_error (FUNC, NULL, args, ARG, NULL, Pike_sp+ARG-1-args, \ +  bad_arg_error (FUNC, args, ARG, NULL, Pike_sp+ARG-1-args, \    msg_bad_arg_2, ARG, FUNC, PROBLEM)      /**    * Throw an exception that the number of arguents to the function is    * wrong. This macro will use the variable args as the number of given    * arguments.    *    * @param FUNC The name of the function, e.g. "create".    * @param ARG The number of expected arguments.    */