dcheck_is_on.h 392 B

1234567891011121314
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_DCHECK_IS_ON_H_
  5. #define BASE_DCHECK_IS_ON_H_
  6. #if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON)
  7. #define DCHECK_IS_ON() false
  8. #else
  9. #define DCHECK_IS_ON() true
  10. #endif
  11. #endif // BASE_DCHECK_IS_ON_H_