1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-31 09:20:23 +02:00

(create_gsubr): On "too many args" error,

also display arg count and name.
This commit is contained in:
Thien-Thi Nguyen 2002-02-09 00:42:33 +00:00
parent 24fbfb6046
commit b93f3ac83b

View file

@ -104,7 +104,9 @@ create_gsubr (int define, const char *name,
SCM sym = SCM_SUBR_ENTRY(subr).name; SCM sym = SCM_SUBR_ENTRY(subr).name;
if (SCM_GSUBR_MAX < req + opt + rst) 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); exit (1);
} }
SCM_SET_GSUBR_PROC (cclo, subr); SCM_SET_GSUBR_PROC (cclo, subr);