mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
Document `scm_misc_error' (bug #31969).
* doc/ref/api-control.texi (Handling Errors): Add `scm_misc_error'. Suggested by Bake Timmons <b3timmons@speedymail.org> (bug #31969).
This commit is contained in:
parent
bf7c2e964e
commit
9dfcd9e2d6
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
@c -*-texinfo-*-
|
@c -*-texinfo-*-
|
||||||
@c This is part of the GNU Guile Reference Manual.
|
@c This is part of the GNU Guile Reference Manual.
|
||||||
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2009, 2010
|
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2009, 2010, 2011
|
||||||
@c Free Software Foundation, Inc.
|
@c Free Software Foundation, Inc.
|
||||||
@c See the file guile.texi for copying conditions.
|
@c See the file guile.texi for copying conditions.
|
||||||
|
|
||||||
|
@ -1493,13 +1493,18 @@ and the call to these routines doesn't change @code{errno}.
|
||||||
@deftypefnx {C Function} void scm_wrong_type_arg_msg (char *@var{subr}, int @var{argnum}, SCM @var{bad_value}, const char *@var{expected})
|
@deftypefnx {C Function} void scm_wrong_type_arg_msg (char *@var{subr}, int @var{argnum}, SCM @var{bad_value}, const char *@var{expected})
|
||||||
@deftypefnx {C Function} void scm_memory_error (char *@var{subr})
|
@deftypefnx {C Function} void scm_memory_error (char *@var{subr})
|
||||||
Throw an error with the various keys described above.
|
Throw an error with the various keys described above.
|
||||||
|
@deftypefnx {C Function} void scm_misc_error (const char *@var{subr}, const char *@var{message}, SCM @var{args})
|
||||||
|
|
||||||
For @code{scm_wrong_num_args}, @var{proc} should be a Scheme symbol
|
In @code{scm_wrong_num_args}, @var{proc} should be a Scheme symbol
|
||||||
which is the name of the procedure incorrectly invoked. The other
|
which is the name of the procedure incorrectly invoked. The other
|
||||||
routines take the name of the invoked procedure as a C string.
|
routines take the name of the invoked procedure as a C string.
|
||||||
|
|
||||||
In @code{scm_wrong_type_arg_msg}, @var{expected} is a C string
|
In @code{scm_wrong_type_arg_msg}, @var{expected} is a C string
|
||||||
describing the type of argument that was expected.
|
describing the type of argument that was expected.
|
||||||
|
|
||||||
|
In @code{scm_misc_error}, @var{message} is the error message string,
|
||||||
|
possibly containing @code{simple-format} escapes (@pxref{Writing}), and
|
||||||
|
the corresponding arguments in the @var{args} list.
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue