On Wed, Apr 22, 2009 at 8:39 PM, Mark Larson (Google) m...@chromium.orgwrote:
So, please don't do any work in a DCHECK. We're lucky that the above
example failed to compile, but it's possible to write code like this that
would compile and just cause bizarre errors in release builds.
...and I
On Thu, Apr 23, 2009 at 6:53 AM, Peter Kasting pkast...@chromium.org wrote:
...and I have written such code (~1.5 years ago). It was annoying to track
down. Don't be dumb like me. Don't do anything with side effects inside
CHECK(), DCHECK(), or similar.
FWIW, in non-Chromium Google code it