I want to make it so that I can use the same enum member name in different enumerations, like this:
enum OPTION_1
{
ACTIVATED = 1,
DEACTIVATED = 0
};
enum OPTION_2
{
ACTIVATED = 1,
OFF = 0
};
When I try to compile this I get the error: Duplicate enumerator name "ACTIVATED".
I have found a similar question, but for the C++ language c++ how to have same enum members name in different enum names without getting err:redefinition; previous definition was 'enumerator'
I tried the solutions showed there, but I couldn't implement them in CAPL. My question is whether I can have enums with different names but with the same member names; if it is possible, how can it be implemented in CAPL?