I always add the name of an enumeration to its values, because otherwise I often have conflicts with other enumerations, for example:
typedef enum
{
A_ONE,
A_TWO,
} A;
typedef enum
{
B_ONE,
B_TWO,
} B;
Is there a better way to do this in C?
source
share