I have a long list of contstants which are #defined, and for each constant in the list there's two entries in another constant list (start and end)
So...
#define IDLE 0
#define WALK 1
// ...
#define IDLE_START 0
#define IDLE_END 22
#define WALK_START 23
#define WALK_END 50
would be an example of the two lists. I want to clean this up a bit (this isn't my code) so I first opted for an enum:
enum state { idle, walk, ... };
But that still leaves the other list for which I don't know what to do.
Basically, I need a way of connecting one constant to two other constants. I could whip something ugly up, but i'm looking for an elegant solution.
Thanks in advance.