C99中的自动枚举定义

I would like to create an enum for the states of a DFA. The DFA has 98 states ranging from 0 to 97. The elements of the enum should look like: q_0, q_1, ..., q_97. How to I automatically generate this enum?