summaryrefslogtreecommitdiff
path: root/chromium/base/dcheck_is_on.h
blob: ee352053cc6e4636c041c6d65d7fc9f6b12c4dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef BASE_DCHECK_IS_ON_H_
#define BASE_DCHECK_IS_ON_H_

#if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON)
#define DCHECK_IS_ON() false
#else
#define DCHECK_IS_ON() true
#endif

#endif  // BASE_DCHECK_IS_ON_H_