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-7
ALLOW_CPLUSPLUS_COMMENTS
ALLOW_CPLUSPLUS_COMMENTS
The ALLOW_CPLUSPLUS_COMMENTS pragma directs the native mode C compiler to
allow the use of comments entered in the style of the C++ language.
The pragma default settings are:
TRIGRAPH Controls whether the TNS C compiler or Cfront
translate trigraphs for the current compilation.
VERSION1
Directs the TNS/R native C++ compiler to compile
according to the D40 version or dialect of C++.
Disables all new features added from the D45 RVU
onward. VERSION1 is the default compilation mode for
D45 and all RVUs until the G06.20 RVU.
VERSION2
Directs the native C++ compiler to compile using the
dialect or features available beginning with the
D45 version of the HP C++ language.
VERSION3 Directs the native C++ compiler to compile according
to the G06.20 version or dialect of C++. Enables all
new features added at the G06.20 RVU and enforces
the ISO/IEC IS 14882-1998 standard. VERSION3 is
the default compilation mode for G06.20 and all
subsequent RVUs. Compare with VERSION2 and
VERSION1.
WARN
Controls the generation of all or selected warning
messages.
WIDE
Specifies the data model, which defines the size of the
data type int.
XMEM
Controls which TNS memory model, large or small, the
object file uses.
XVAR
Controls whether the TNS C compiler places
subsequent global or static aggregates in extended
memory or in the user data segment.
ALLOW_CPLUSPLUS_COMMENTS
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 Not set Not set
TNS/E native C and C++ compilers Not set Not set
Table 13-1. Compiler Pragma Descriptions (page 7 of 7)
Pragma Purpose