document souce_location/2.

This commit is contained in:
Vitor Santos Costa 2009-11-23 10:05:52 +00:00
parent b15d9c0363
commit 84f5dfec7d

View File

@ -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