C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-17
CPPONLY
CPPONLY
The CPPONLY pragma causes only the C macro preprocessor to be run.
[no]comments
specifies whether comments are preserved in the preprocessed file.
[no]lines
specifies whether #line directives are generated in the preprocessed file.
file "file-name"
specifies a Guardian type-180 file to receive the preprocessed output. Quotation
marks are required delimiters around the file name.
The default option is comments, lines.
The pragma default settings are:
Usage Guidelines
The CPPONLY pragma can appear only on the compiler RUN command line.
The CPPONLY pragma can be specified only when running the compiler in the
Guardian environment.
If you do not include the file option, the preprocessed output is written to the OUT
file that was specified in the compiler RUN command. In this case, if the OUT file is
an EDIT file, preprocessed output lines might get truncated. To prevent this
problem, you should include the file option and specify a file of type 180 (a C disk
file, an odd-unstructured file).
CPPONLY [ (option [, option] ) ]
option:
{ [no]comments | [no]lines | file "file-name" }
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler N.A. N.A.
G-series TNS c89 utility N.A. N.A.
TNS/R native C and C++ compilers Not set Not set
Native c89 utility N.A. N.A.
TNS/E native C and C++ compilers Not set Not set