Setting up enumeration literals for generating C code (C code)
In addition to the standard Enumeration Literal properties in Modeler, you can apply the «C Enum Literal» stereotype to an Enumeration Literal, and then use its Tag Definitions to define C specific information.
1. If you have not done so already, add the C Profile package to your Model.
How?
5. If you want to specify expression text for the Enumeration Literal, type the text as the tagged value of the C Expression tag definition.
6. If you want the generated enumeration literal to be prefixed by the name of the owning enumeration followed by an underscore, set the tagged value of the C Prefix Name tag definition to TRUE.