16.3.6 Enumerations

H2INC converts C enumeration declarations into MASM EQU definitions that are treated as standard integer constants. If the C declaration is not assigned a value, the H2INC generates an EQU statement that supplies a value equivalent to its position in the list. For example, the C enumeration declaration

enum tagName

{

id1,

id2,

id3 = 42,

id4

};

is converted into the following EQU statements:

id1 EQU 0t

id2 EQU 1t

id3 EQU 42t

id4 EQU 43t

See Section 1.2.4 for information on MASM integer constants.