I have a bunch of macros that are only for a small area of ββthe project. I want to define them so that they do not pollute the global namespace, but Visual Studio still confirms their presence after #undef in other files. IE:
#define A_MACRO
...
#undef A_MACRO
...
#include "A.hpp"
#include "~A.hpp"
...
#include "B.hpp"
A_MACRO
Do I just need to deal with this, or is there another way to accomplish what I'm trying to do?
EDIT: It seems that Code :: Blocks correctly removes it outside of #undef, so it should be something in Visual Studio settings.
source
share