pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:39: Inside #if defined(PIKE_DEBUG)
   "UNSETJMP out of sync! (last SETJMP at %s)!\n";   PMOD_EXPORT const char msg_unsetjmp_nosync_2[] =    "UNSETJMP out of sync! (Pike_interpreter.recoveries = 0)\n";   PMOD_EXPORT const char msg_last_setjmp[] =    "LAST SETJMP: %s\n";   PMOD_EXPORT const char msg_unset_onerr_nosync_1[] =    "UNSET_ONERROR out of sync (%p != %p).\n"    "Last SET_ONERROR is from %s\n";   PMOD_EXPORT const char msg_unset_onerr_nosync_2[] =    "UNSET_ONERROR out of sync. No Pike_interpreter.recoveries left.\n"; - PMOD_EXPORT const char msg_assert_onerr[] = -  "%s ASSERT_ONERROR(%p) failed\n"; +    #endif   PMOD_EXPORT const char msg_bad_arg[] =    "Bad argument %d to %s(). Expected %s.\n";   PMOD_EXPORT const char msg_bad_arg_2[] =    "Bad argument %d to %s(). %s\n";   PMOD_EXPORT const char msg_out_of_mem[] =    "Out of memory.\n";   PMOD_EXPORT const char msg_out_of_mem_2[] =    "Out of memory - failed to allocate %"PRINTSIZET"u bytes.\n";   PMOD_EXPORT const char msg_div_by_zero[] =
pike.git/src/error.c:1084:   PMOD_EXPORT DECLSPEC(noreturn) void out_of_memory_error (    const char *func, int args,    size_t amount)   {    resource_error (func, args, amount,    amount ? msg_out_of_mem_2 : msg_out_of_mem, amount);    UNREACHABLE();   }      /* coverity[+kill] */ - PMOD_EXPORT DECLSPEC(noreturn) void permission_error( -  const char *func, -  const struct svalue *base_sp, int args, -  const char *permission_type, -  const char *desc, ...) ATTRIBUTE((noreturn)) - { -  INIT_ERROR(permission); -  ERROR_STRUCT(permission,o)->permission_type= -  make_shared_string(permission_type); -  ERROR_DONE(generic); - } -  - /* coverity[+kill] */ +    PMOD_EXPORT void wrong_number_of_args_error(const char *name, int args, int expected)   {    if(expected>args)    {    bad_arg_error (name, NULL, args, expected, NULL, NULL,    "Too few arguments to %s(). Expected at least %d (got %d).\n",    name, expected, args);    }else {    bad_arg_error (name, NULL, args, expected, NULL, NULL,    "Too many arguments to %s(). Expected at most %d (got %d).\n",