Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C Code > Generating C Code > Overview of generating C code (C code) > Overview of modeling C code (C code) > Setting up enumerations for generating C code (C code)
  
Setting up enumerations for generating C code (C code)
In addition to the standard Type Definition properties in Modeler, you can apply the «C Enumeration» stereotype to a Type Definition, and then use its Tag Definitions to define C specific information.
For information about setting up Enumeration Literals, click here Setting up enumeration literals for generating C code (C code)
1. If you have not done so already, add the C Profile package to your Model. How?
2. Set the standard properties of the Enumeration as required. Tell me more...
3. Apply the «C Enumeration» stereotype to the Enumeration.
For information about applying Stereotypes to an item, click here
4. Open the Enumeration's Property Pages, and then click the C Enumeration tab.
For information about setting the tagged value of a Tag Definition, click here
5. If you want the Enumeration to be generated inline, set the tagged value of the C Anonymous Item tag definition to TRUE.