When a music function called via Scheme wanted to report a bad argument
type, it instead triggered a Scheme error wrong-number-of-args because
of a spurious `location' argument. This was an oversight in issue 4455
and was converted into equivalently bad code by several other issues
touching this code.
if (scm_is_false (scm_call_1 (pred, arg)))
{
- Lily::argument_error (location,
- scm_from_int (scm_ilength (args)),
+ Lily::argument_error (scm_length (args),
pred, arg);
SCM val = scm_car (get_signature ());
val = scm_is_pair (val) ? scm_cdr (val) : SCM_BOOL_F;