pike.git
/
src
/
error.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/error.c:655:
*! *! @note *! The error message is always terminated with a newline. *! *! @seealso *! @[backtrace()] */ static void f_error_index(INT32 args) { INT_TYPE ind;
-
get_all_args(
"`[]"
,args,"%i",&ind);
+
get_all_args(
NULL
,
args,
"%i",
&ind);
switch(ind) { case 0: pop_n_elems(args); apply_current (generic_err_message_fun, 0); break; case 1: pop_n_elems(args); apply_current (generic_err_backtrace_fun, 0);
pike.git/src/error.c:814:
} /*! @decl void create(string message, @ *! void|array(backtrace_frame|array(mixed)) backtrace) */ static void f_error_create(INT32 args) { struct pike_string *msg; struct array *bt = NULL;
-
get_all_args(
"create"
, args, "%W.%A", &msg, &bt);
+
get_all_args(
NULL
, args, "%W.%A", &msg, &bt);
do_free_string(GENERIC_ERROR_THIS->error_message); copy_shared_string(GENERIC_ERROR_THIS->error_message, msg); if (bt) { if (GENERIC_ERROR_THIS->error_backtrace) free_array (GENERIC_ERROR_THIS->error_backtrace); add_ref (GENERIC_ERROR_THIS->error_backtrace = bt); } else {
pike.git/src/error.c:1014:
{ const struct svalue *base_sp = args>=0 ? Pike_sp-args : NULL; INIT_ERROR(bad_argument); ERROR_COPY(bad_argument, which_argument); if (expected_type) ERROR_STRUCT(bad_argument,o)->expected_type = make_shared_string(expected_type); 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(); } /* coverity[+kill] */ PMOD_EXPORT DECLSPEC(noreturn) void math_error( const char *func, int args, struct svalue *number, const char *desc, ...) ATTRIBUTE((noreturn))