Did you know ... | Search Documentation: |
gpp.pl -- Use XSB gpp preprocessor |
This library enables using the XSB gpp preprocessor on .P files.
Currently the gpp
program is not provided with SWI-Prolog. If you need
this compatibility get it from XSB. The XSB sources provide gpp.c
, a
simple stand alone C file that can be compiled with any C compiler. The
gpp
program must be installed in a directory accessible through the
PATH
environment variable. The preprocessor is enabled using
:- use_module(library(dialect/xsb/gpp)).
Running code through gpp can be useful for several reasons:
There are also good reasons not to use a preprocessor:
#include file
is used it will report the wrong file for
errors. In addition, make/0 will not be able to pick up that an
included file has changed and thus the main file needs to be
reloaded.gpp
on the PATH
environment variable.