So we now have MOZ_DIAGNOSTIC_ASSERT, which is great. Its a bit difficult to use, though, if you need to conditionally run other code. As you can see bug 1331949 its easy to break things when they merge to beta. It would be nice to have: #define MOZ_DIAGNOSTIC (defined(DEBUG) || !defined(BETA_OR_RELEASE)) And a DiagnosticDebugOnly<> that works like DebugOnly<>, but for the diagnostic build conditions.
https://hg.mozilla.org/integration/autoland/rev/c174e6090f9e added the first half. This leaves the DebugOnly-like template for this bug.
You need to log in before you can comment on or make changes to this bug.