Specifies the size of enumerated types.
Compatibility:This pragma is compatible with the following platform targets:
#pragma enumsalwaysint on | off | reset
Remarks:
enum SmallNumber { One = 1, Two = 2 };
/* If enumsalwaysint is on, this type will
be the same size as a int.
If the pragma is off, this type will be
the same size as an char. */
enum BigNumber
{ ThreeThousandMillion = 3000000000 };
/* If enumsalwaysint is on, the compiler may
generate an error.
If this pragma is off, this type will
be the same size as a long int. */For more information on how the compiler handles enumerated types, see "Enumerated Types."
This pragma corresponds to the Enums Always Int option in the C/C++ Language Panel. To check whether this option is on, use __option (enumsalwaysint), described in "Checking Options."