Open Bug 1332104 Opened 7 years ago Updated 2 years ago

add some MOZ_DIAGNOSTIC helpers

Categories

(Core :: MFBT, defect)

defect

Tracking

()

People

(Reporter: bkelly, Unassigned)

References

Details

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.
See Also: → 1359583
https://hg.mozilla.org/integration/autoland/rev/c174e6090f9e added the first half. This leaves the DebugOnly-like template for this bug.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.