From 1fc8dcc7ac6a83ae6586e02491784954e3be94ef Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 19 Mar 2010 12:30:31 +0100 Subject: document syntax-case * doc/ref/api-macros.texi: Document syntax-case, and tweak defmacro docs. * doc/ref/api-debug.texi: Move cons-source here. --- doc/ref/api-debug.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/ref/api-debug.texi') diff --git a/doc/ref/api-debug.texi b/doc/ref/api-debug.texi index 747ac45d1..37a5b21ab 100644 --- a/doc/ref/api-debug.texi +++ b/doc/ref/api-debug.texi @@ -256,6 +256,17 @@ If the @code{positions} reader option is enabled, each parenthesized expression will have values set for the @code{filename}, @code{line} and @code{column} properties. +If you're stuck with defmacros (@pxref{Defmacros}), and want to preserve +source information, the following helper function might be useful to +you: + +@deffn {Scheme Procedure} cons-source xorig x y +@deffnx {C Function} scm_cons_source (xorig, x, y) +Create and return a new pair whose car and cdr are @var{x} and @var{y}. +Any source properties associated with @var{xorig} are also associated +with the new pair. +@end deffn + @node Starting a New Stack @subsubsection Starting a New Stack -- cgit v1.2.1