DCHECK_ALWAYS_ON to make D* enabled under NDEBUG
authorYoshisato Yanagisawa <yyanagisawa@google.com>
Tue, 7 Feb 2017 06:47:51 +0000 (15:47 +0900)
committerYoshisato Yanagisawa <yyanagisawa@google.com>
Wed, 8 Feb 2017 08:23:37 +0000 (17:23 +0900)
The macro NDEBUG could be automatically defined for release build on
some build environments (e.g. MSVC).  If we use NDEBUG as a key to
distinguish using DCHECK as CHECK (I call this DCHECK is enabled) or
not, we cannot make DCHECK enabled for release build on such
environments.

Considering people use a program with glog for presubmit testing or
dogfooding, they should need to do release build with DCHECK enabled.


No differences found