Portability and migration

Table 1. Portability and migration pragmas
Pragma Description
#pragma convert

Provides a way to specify more than one coded character set in a single compilation unit to convert string literals.

#pragma convlit

Suspends the string literal conversion that the CONVLIT compiler option performs during specific portions of your program.

#pragma namemangling (C++ only)

Chooses the name mangling scheme for external symbol names generated from C++ source code.

#pragma namemanglingrule (C++ only)

Provides fined-grained control over the name mangling scheme in effect for selected portions of source code, specifically with respect to the mangling of cv-qualifiers in function parameters.

#pragma object_model (C++ only)

Sets the object model to be used for structures, unions, and classes.

#pragma wsizeof

Toggles the behavior of the sizeof operator between that of a compiler prior the C/C++ for MVS/ESA V3R2 and the z/OS® XL C/C++ compiler.