guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.2-149-gb2c4c


From: Mike Gran
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.2-149-gb2c4c3e
Date: Sun, 09 Oct 2011 00:13:09 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=b2c4c3e5e315c64a5978d1c5918e9063cd92ada8

The branch, stable-2.0 has been updated
       via  b2c4c3e5e315c64a5978d1c5918e9063cd92ada8 (commit)
      from  41d43584f2175e22e3380ae1553a3415dae711fc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b2c4c3e5e315c64a5978d1c5918e9063cd92ada8
Author: Mike Gran <address@hidden>
Date:   Sat Oct 8 17:12:12 2011 -0700

    Document SCM_ASSERT_TYPE and SCM_ASRTGO macros
    
    * doc/ref/api-control.texi (Signalling Type Errors): document macros

-----------------------------------------------------------------------

Summary of changes:
 doc/ref/api-control.texi |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/doc/ref/api-control.texi b/doc/ref/api-control.texi
index 9f741fd..ad36806 100644
--- a/doc/ref/api-control.texi
+++ b/doc/ref/api-control.texi
@@ -1636,9 +1636,13 @@ causing a segmentation fault.  Guile provides some 
macros to make this
 easier.
 
 @deftypefn Macro void SCM_ASSERT (int @var{test}, SCM @var{obj}, unsigned int 
@var{position}, const char address@hidden)
address@hidden Macro void SCM_ASSERT_TYPE (int @var{test}, SCM @var{obj}, 
unsigned int @var{position}, const char address@hidden, const char 
address@hidden) 
 If @var{test} is zero, signal a ``wrong type argument'' error,
 attributed to the subroutine named @var{subr}, operating on the value
 @var{obj}, which is the @var{position}'th argument of @var{subr}.
+
+In @code{SCM_ASSERT_TYPE}, @var{expected} is a C string describing the
+type of argument that was expected.
 @end deftypefn
 
 @deftypefn Macro int SCM_ARG1
@@ -1663,6 +1667,13 @@ leave it unspecified which argument's type is incorrect. 
 Again,
 @code{SCM_ARGn} should be preferred over a raw zero constant.
 @end deftypefn
 
+The @code{SCM_ASRTGO} macro provides another strategy for handling 
+incorrect types.
+
address@hidden Macro void SCM_ASRTGO (int @var{test}, label)
+If @var{test} is zero, use @code{goto} to jump to the given @var{label}.
address@hidden must appear within the current function.
address@hidden deftypefn
 
 @node Continuation Barriers
 @subsection Continuation Barriers


hooks/post-receive
-- 
GNU Guile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]