Next: Form of Definitions File, Previous: Using gnatprep, Up: Preprocessing Using gnatprep
gnatprep
"--! "
. This option will result in line numbers
being preserved in the output file.
True
. This switch
can be used in place of a definition file.
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
.
#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.