pike.git/
src/
error.c
Branch:
Tag:
Non-build tags
All tags
No tags
2018-02-22
2018-02-22 19:21:47 by Martin Nilsson <nilsson@fastmail.com>
69f0acace44cdcf93e96277c2e6c4141c456adfa (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
master
Calculate base_sp in bad_arg_error.
1035:
const char *desc, ...) ATTRIBUTE((noreturn)) { INIT_ERROR(bad_argument);
+
if(!base_sp) base_sp = Pike_sp-args;
ERROR_COPY(bad_argument, which_argument); if (expected_type) ERROR_STRUCT(bad_argument,o)->expected_type =
1107:
{ if(expected>args) {
-
bad_arg_error (name,
Pike_sp-args
, args, expected, NULL, NULL,
+
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,
Pike_sp-args
, args, expected, NULL, NULL,
+
bad_arg_error (name,
NULL
, args, expected, NULL, NULL,
"Too many arguments to %s(). Expected at most %d (got %d).\n", name, expected, args); }