Hi,
I have typedef'ed an enum with some elements in a particular order and am using them in my code.
Now I have a need to typedef the same enum elements in a different order to use the same code for a different product. Could some one suggest the best way I can do this thing?
For example:
Code:
typedef uint16 test_enum1_type;enum
{
xxx,
YYY,
ZZZ
}
Now I need the same elements in a different order,
Code:
typedef uint16 test_enum2_type;enum
{
YYY,
xxx,
ZZZ
}
Somehow I need to select required enum at run time based on the product type that I build.
Let me know if I am not clear.
Thanks!!