C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)
Example
#pragma NOOVERFLOW_TRAPS
void NoTraps (void) {
/* No trapping code generated */
}
#pragma OVERFLOW_TRAPS
void Traps (void) {
/* Generates trapping code */
}
#pragma NOOVERFLOW_TRAPS
/* Again, no trapping code generated */
PAGE
The PAGE pragma causes a page eject in the compiler listing and prints a page heading. The
page eject occurs only when the output is being directed to a printer or spooler device.
PAGE [ "title-string" ]
title-string
specifies the title to print on each subsequent page. The title string can contain up to 61
characters.
There is no default setting for this pragma.
Usage Guidelines
• The PAGE pragma cannot appear on the command line, but it can appear at any point in the
source text.
• The quotation marks enclosing title-string are required delimiters; they are not printed.
• If the title string is longer than 61 characters, the compiler prints only the first 61.
• PAGE takes effect only if the LIST pragma is in effect.
POOL_STRING_LITERALS
The POOL_STRING_LITERALS directive specifies that within a compilation unit multiple occurrences
of the same string literal are to occupy the same storage space. The default assignments for multiple
occurrences of a string literal gives them separate storage space.
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
The POOL_STRING_LITERALS directive must be entered on the command line. It can also be
specified with the -Wpool_string_literals flag of the c89 or the c99 utility.
PAGE 227