pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:1042:    else    ERROR_STRUCT(bad_argument,o)->expected_type = NULL;    ERROR_COPY_SVALUE(bad_argument, got_value);    DWERROR("%s():Bad arg %d (expected %s)\n",    func, which_argument, expected_type);    ERROR_DONE(generic);   }      /* coverity[+kill] */   PMOD_EXPORT DECLSPEC(noreturn) void math_error( -  const char *func, -  const struct svalue *base_sp, int args, +  const char *func, int args,    struct svalue *number,    const char *desc, ...) ATTRIBUTE((noreturn))   {    INIT_ERROR(math); -  +  const struct svalue *base_sp = Pike_sp - args;    if(number)    {    ERROR_COPY_SVALUE(math, number);    }else{    SET_SVAL(ERROR_STRUCT(math,o)->number, PIKE_T_INT, NUMBER_UNDEFINED,    integer, 0);    }    ERROR_DONE(generic);   }