summaryrefslogtreecommitdiff
path: root/libguile/error.c
diff options
context:
space:
mode:
authorDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2001-03-17 11:32:56 +0000
committerDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2001-03-17 11:32:56 +0000
commit9f40cd879d951cdaa3409aef31340b2b1472921d (patch)
tree6e294a84addc2981635112ae828c2de00a007809 /libguile/error.c
parent0c0ffe090ae9c83c1aeb12e507c6cd199bc4efd5 (diff)
downloadguile-9f40cd879d951cdaa3409aef31340b2b1472921d.tar.gz
* Added function scm_error_num_args_subr.
Diffstat (limited to 'libguile/error.c')
-rw-r--r--libguile/error.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/libguile/error.c b/libguile/error.c
index 5d441df3f..7d8b30900 100644
--- a/libguile/error.c
+++ b/libguile/error.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1997,1998, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1997,1998,2000,2001 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -252,6 +252,18 @@ scm_wrong_num_args (SCM proc)
SCM_BOOL_F);
}
+
+void
+scm_error_num_args_subr (const char *subr)
+{
+ scm_error (scm_args_number_key,
+ NULL,
+ "Wrong number of arguments to ~A",
+ SCM_LIST1 (scm_makfrom0str (subr)),
+ SCM_BOOL_F);
+}
+
+
SCM_SYMBOL (scm_arg_type_key, "wrong-type-arg");
void
scm_wrong_type_arg (const char *subr, int pos, SCM bad_value)