diff options
author | Mark H Weaver <mhw@netris.org> | 2012-02-14 02:14:10 -0500 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2012-02-15 11:23:27 -0500 |
commit | 76b9bac565182dd7d0ffe416c3382ac7d59d93ab (patch) | |
tree | 10f39a44fdefc7598828f819b161a59d1231d775 /doc/ref/api-debug.texi | |
parent | fb3a112122b6406e88adbff2299aacc5230cc8ec (diff) | |
download | guile-76b9bac565182dd7d0ffe416c3382ac7d59d93ab.tar.gz |
Add 'supports-source-properties?' predicate
* libguile/srcprop.c (scm_supports_source_properties_p): New procedure.
(supports_source_props): New static C function.
* libguile/srcprop.h (scm_supports_source_properties_p): Add prototype.
* doc/ref/api-debug.texi (Source Properties): Add documentation.
Diffstat (limited to 'doc/ref/api-debug.texi')
-rw-r--r-- | doc/ref/api-debug.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/ref/api-debug.texi b/doc/ref/api-debug.texi index c5fbe5629..18371f0fc 100644 --- a/doc/ref/api-debug.texi +++ b/doc/ref/api-debug.texi @@ -258,6 +258,12 @@ ERROR: Unbound variable: xxx In the latter case, no source properties were stored, so the error doesn't have any source information. +@deffn {Scheme Procedure} supports-source-properties? obj +@deffnx {C Function} scm_supports_source_properties_p (obj) +Return #t if source properties can be associated with @var{obj}, +otherwise return #f. +@end deffn + The recording of source properties is controlled by the read option named ``positions'' (@pxref{Scheme Read}). This option is switched @emph{on} by default. |