02.02.2019, 12:03
So today I was wondering if it is possible to create a macro "#redefine"? Was thinking something like this:
Then I would just have to do:
Which is actually going to save me from doing this:
Код:
#define redefine %0 %1 #if defined %0 #undef %0 #endif #define %0 %1
Код:
#redefine MAX_PLAYERS (50)
Код:
#if defined MAX_PLAYERS #undef MAX_PLAYERS #endif #define MAX_PLAYERS (50)