--On Tue, Oct 14, 2025 at 9:50 AM Gabriel Dos Reis <gdr@microsoft.com> wrote:
There are two assertions there that I cannot understand. Rene, could you explain further the impossibility?
It's simple.. If you use a macro in your headers users can override any control you may think you have over that macro.
-- René Ferdinand Rivera Morell
-- Don't Assume Anything -- No Supongas Nada
-- Robot Dreams - http://robot-dreams.net
_______________________________________________ SG15 mailing list SG15@lists.isocpp.org https://lists.isocpp.org/mailman/listinfo.cgi/sg15
Can they ? What about
https://gcc.gnu.org/onlinedocs/cpp/Undefining-and-Redefining-Macros.html
and
https://clang.llvm.org/docs/DiagnosticsReference.html#wbuiltin-macro-redefined
I have the feeling if I control the CI, there is not too much danger in redefining or undefining macros, but I havn't made the bad actor test, so there might be something I miss
/Harald