enum Colors
{
Colors_red, /*this is red*/
Colors_green, /*this is green*/
Colors_blue /*this is blue*/
};
enum Colors
{
Colors_red,
Colors_green,
Colors_blue
};
|
|
ACS may modify the enumeration literal name that is added to the code to make it valid for C. You can specify the exact enumeration literal name to add to the code through the CODE_GENERATION_NAME property of an Enumeration Literal. Tell me more...
|
enum Colors
{
red = 1,
green = 5,
blue = green + 1
};
|
|
When reverse engineering Enumeration Literals, the Reverser applies the «C Enumeration» stereotype to each Enumeration Literal and records the value of the expression in the text of the C Expression tag definition.
|
enum Colors
{
Colors_red,
Colors_green,
Colors_blue
};