Previous: 3.2.28. $XW: Extended Warnings To the Table of Contents Next: 3.3. Predefined Symbols
3.2.28. $XW: Extended Warnings Table of Contents 3.3. Predefined Symbols

- 3.2.29. -
Table of Contents>
3. Compiler Directives
3.2. Switch and Parameter Directives
3.2.29. $Z: Minimum enumeration size switch


3.2.29. $Z: Minimum enumeration size switch


(Targets: MS-DOS, OS/2, Win32)


$Z Compiler directive controls the minimum storage size of enumerated types.

Syntax:
  {$Z1} or {$Z2} or {$Z3}
Default:
  {$Z1}
Remarks: An enumerated type is stored as an unsigned byte since the maximum limit for enumeration is 256 values. If the {$Z2} switch has been specified, it is stored as an unsigned word. If the {$Z4} switch has been specified, it is stored an unsigned double-word. This feature is very useful for compatibility with C and C++ DLL's, which usually represent enumerated types as words or double-words.


Previous: 3.2.28. $XW: Extended Warnings To the Table of Contents Next: 3.3. Predefined Symbols
3.2.28. $XW: Extended Warnings Table of Contents 3.3. Predefined Symbols

- 3.2.29. -