I have two large framework libraries, whose header files are included in my project. Either one works flawlessly, but including both causes erratic behaviour (but no error message related to the macro).
I assume that they both #define a macro of the same name. What is the most efficient way to identify the problematic macro?
If the header files are badly written and
#undef SYMBOL ... #define SYMBOL something-elsethen you can’t trace this. Simply #defining a macro twice should at least issue a warning. You’d have to look more closely at the ‘erratic behavior’.