I have a file which has some difinitions like:
TRACE( tra_1, "AA")
TRACE( tra_1, "BB")
TRACE( tra_1, "CC")
TRACE( tra_1, "DD")
TRACE( tra_1, "EE")
..
and so on. where AA, BB, CC, DD and EE are strings.
I want to take those TRACE definitions from file and convert them to enum. The output of pre-processor should look like:
typedef enum{
AA,
BB,
CC,
DD,
EE
} TRACE;