I work with a legacy code and when I include some headers on linux I have to undef appropriate macros, for example:
#pragma push_macro("align")
#undef align
#include <memory>
#pragma pop_macro("align")
I would like to create a macro which expands to the above code and can be used this way:
include_(memory, align)
I can use _Pragma instead of #pragma inside #definebut what about with #undef and #include ?
Is it possible to create such macro ?