Keil Logo

ENUMINT Compiler Directive

Abbreviation

ENI

Arguments

None.

Default

Enumeration types are evaluated as the smallest possible type.

µVision

Options — C51 — Misc controls.

Description

The ENUMINT directives forces all enumeration symbols to 16-bit int values. By default, enumeration symbols are evaluated using the smallest possible representation.

See Also

INTPROMOTE, NOINTPROMOTE

Example
C51 SAMPLE.C ENUMINT

#pragma enumint
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.