Chris Green chris@areti.co.uk writes:
Thanks, yes, I've done similar tricks with #define when wanting a set of enum constants to match a set of string variables. The above certainly does address the globals issue. However it does mean that you have values (other than constants) in the .h file which is (sort of) a bit naughty.
I don't see why...?