E
Ernie.Pasveer
Hi All,
Is there a way to create a macro called #redefine that will allow
redefinition without having to use #ifdef/#undef
For example, I'd like to do something like this :
#define THING "apple"
... code
#redefine THING "banana"
... code
#redefine THING "orange"
... code
Instead of :
#define THING "apple"
... code
#undef THING
#define THING "banana"
... code
#undef THING
#define THING "orange"
... code
Is there a way to create a macro called #redefine that will allow
redefinition without having to use #ifdef/#undef
For example, I'd like to do something like this :
#define THING "apple"
... code
#redefine THING "banana"
... code
#redefine THING "orange"
... code
Instead of :
#define THING "apple"
... code
#undef THING
#define THING "banana"
... code
#undef THING
#define THING "orange"
... code