From 84f5dfec7d694ba91931c1e56dda5680e22adac5 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 23 Nov 2009 10:05:52 +0000 Subject: [PATCH] document souce_location/2. --- docs/yap.tex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/yap.tex b/docs/yap.tex index b10e70b70..d98e0b1e5 100644 --- a/docs/yap.tex +++ b/docs/yap.tex @@ -8094,6 +8094,12 @@ Stream position at the stream currently being read in. @end table +@item source_location(?@var{FileName}, ?@var{Line}) +@findex source_location/2 +@syindex source_location/2 +@cnindex source_location/2 +SWI-compatible predicate. If the last term has been read from a physical file (i.e., not from the file user or a string), unify File with an absolute path to the file and Line with the line-number in the file. Please use @code{prolog_load_context/2}. + @node Library, SWI-Prolog, Built-ins, Top @chapter Library Predicates