If I have:
#define A 1
#define B() A
#undef A
This code:
#if B()
std::cout << "B" << std::endl;
#else
std::cout << "not B" << std::endl;
#endif
will print "not B". Is there a way to assign A to another macro variable/function and then wipe out A?
Background: Using this in the context of cmake's configure_file, in which A
is defined with a #cmakedefine01
.