ENUM

Specifies the number of bytes the compiler uses to represent enumerations. This becomes the default enumeration size for the object. A #pragma enum directive overrides this compile option.

Read syntax diagramSkip visual syntax diagramENUM Syntax:
 
|--+----------------------+-------------------------------------|
   |        .-*SMALL-.    |
   '-ENUM(--+-1------+--)-'
            +-2------+
            +-4------+
            '-*INT---'
 

*SMALL
Default setting. Use the smallest possible size for an enum, as appropriate to the given enum value.
1
Make all enum variables 1 byte in size, signed if possible
2
Make all enum variables 2 bytes in size, signed if possible
4
Make all enum variables 4 bytes in size, signed if possible
*INT


[ Top of Page | Previous Page | Next Page | Contents | Index ]