zygoloid wrote: > As a textual header: > #define NDEBUG > #include <modular_header_that_has_an_assert.h>
This isn't a problem with `<assert.h>`. If `<modular_header_that_has_an_assert.h>` intends to pick up the state of the `NDEBUG` macro from the translation unit that includes it, then it's not a modular header, and shouldn't be declared as one. https://github.com/llvm/llvm-project/pull/165057 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
