Example assert:
assert someCallWithSideEffects() : "assert description";
Example use of DCHECK_IS_ON:
if (org.chromium.base.BuildConfig.DCHECK_IS_ON) { if (!someCallWithSideEffects()) { throw new AssertionError("assert description"); } }
if (org.chromium.base.BuildConfig.DCHECK_IS_ON) { // Any code here will be stripped in release. }
--
You received this message because you are subscribed to the Google Groups "java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java+uns...@chromium.org.
To post to this group, send email to ja...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/java/CAMve_ytGbQgKO%3DpQTMEa-okPTvQYRexMNqDEU3m_%2BuwhcLo6yA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/java/CABiQX1U%2BVXTze_hrhoV3G7VphJBsdLSZfnFAbcOuXhuEpE-Ljw%40mail.gmail.com.