mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-29 08:20:20 +02:00
(create_gsubr): On "too many args" error,
also display arg count and name.
This commit is contained in:
parent
24fbfb6046
commit
b93f3ac83b
1 changed files with 12 additions and 10 deletions
|
@ -104,7 +104,9 @@ create_gsubr (int define, const char *name,
|
|||
SCM sym = SCM_SUBR_ENTRY(subr).name;
|
||||
if (SCM_GSUBR_MAX < req + opt + rst)
|
||||
{
|
||||
fputs ("ERROR in scm_c_make_gsubr: too many args\n", stderr);
|
||||
fprintf (stderr,
|
||||
"ERROR in scm_c_make_gsubr: too many args (%d) to %s\n",
|
||||
req + opt + rst, name);
|
||||
exit (1);
|
||||
}
|
||||
SCM_SET_GSUBR_PROC (cclo, subr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue