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

Table 28 Compiler Pragma Descriptions (continued)
PurposePragma
Controls whether the TNS C compiler or Cfront translate trigraphs
for the current compilation.
TRIGRAPH
Directs the TNS/R native C++ compiler to compile according to the
D40 version or dialect of C++. Disables all new features added from
VERSION1
the D45 RVU onward. VERSION1 is the default compilation mode
for D45 and all RVUs until the G06.20 RVU.
Directs the native C++ compiler to compile using the dialect or
features available beginning with the D45 version of the HP C++
language.
VERSION2
Directs the native C++ compiler to compile according to the G06.20
version or dialect of C++. Enables all new features added at the
VERSION3
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.
Controls the generation of all or selected warning messages.WARN
Specifies the data model, which defines the size of the data type
int.
WIDE
Controls which TNS memory model, large or small, the object file
uses.
XMEM
Controls whether the TNS C compiler places subsequent global or
static aggregates in extended memory or in the user data segment.
XVAR
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.
ALLOW_CPLUSPLUS_COMMENTS
The pragma default settings are:
SYSTYPE OSSSYSTYPE GUARDIAN
N.A.N.A.TNS C compiler
N.A.N.A.G-series TNS c89 utility
Not setNot setTNS/R native C and C++ compilers
Not setNot setNative c89 and c99 utilities
Not setNot setTNS/E native C and C++ compilers
Usage Guidelines
ALLOW_CPLUSPLUS_COMMENTS is a command-line directive that must be entered on the
compiler RUN command line, not in the source text.
The ALLOW_CPLUSPLUS_COMMENTS directive can also be specified with the
-Wallow_cplusplus_comments flag of the c89 or the c99 utility.
When you use the ALLOW_CPLUSPLUS_COMMENTS directive, your native mode C program
can include the comment delimiter that is standard in C++, namely, the double slash (//).
ALLOW_CPLUSPLUS_COMMENTS 171