Next: Form of Definitions File, Previous: Using gnatprep, Up: Preprocessing Using gnatprep
gnatprep
-b
-c
-Dsymbol=value
True
. This switch
can be used in place of a definition file.
-r
Source_Reference
pragma to be generated that
references the original input file, so that error messages will use
the file name of this original file. The use of this switch implies
that preprocessor lines are not to be removed from the file, so its
use will force -b
mode if
-c
has not been specified explicitly.
Note that if the file to be preprocessed contains multiple units, then
it will be necessary to gnatchop
the output file from
gnatprep
. If a Source_Reference
pragma is present
in the preprocessed file, it will be respected by
gnatchop -r
so that the final chopped files will correctly refer to the original
input source file for gnatprep
.
-s
-u
#if
or #elsif
test will be treated as an error.
Note: if neither -b
nor -c
is present,
then preprocessor lines and
deleted lines are completely removed from the output, unless -r is
specified, in which case -b is assumed.