Friend, there are a lots of enum values
enum{
ABC = 123,
XYZ = 456,
FOO = 4321,
BAR = 98743,
...
}
when I got the value, I want print the enum's NAME. we could create a string , value pair array. but have to repeat literally the enum body. if enum changed, then array has to be changed accordingly. I remember preprocess could do magic, create enum list, also generate string, value array with one body.
hope masters here could give me a guide.
thanks Xian