linksplatform / Interfaces

LinksPlatform's Platform.Interfaces Class Library
https://linksplatform.github.io/Interfaces
The Unlicense
3 stars 2 forks source link

Should we add header that undefines macros? #87

Closed Konard closed 2 years ago

Konard commented 3 years ago

https://github.com/linksplatform/Interfaces/blob/master/cpp/Platform.Interfaces/Macros.h

For example, we can name this header as Undefine_Macros.h or UnMacros.h

We could add undefine macros header file to the end of Platform.Interfaces.h do to something like this: https://github.com/linksplatform/Ranges/blob/master/cpp/Platform.Ranges/Range.h

uselessgoddess commented 2 years ago

They don't do that in C++. If it is necessary to declare macro without author prefixes (for example TRY instead of LLVM_TRY), an explicit #undef is usually used

#undef TRY

#define TRY ...
uselessgoddess commented 2 years ago

So no.