xref: /aosp_15_r20/external/pdfium/third_party/base/check_op.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
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 
5 #ifndef THIRD_PARTY_BASE_CHECK_OP_H_
6 #define THIRD_PARTY_BASE_CHECK_OP_H_
7 
8 #include "third_party/base/check.h"
9 
10 #define CHECK_EQ(x, y) CHECK((x) == (y))
11 #define CHECK_NE(x, y) CHECK((x) != (y))
12 #define CHECK_LT(x, y) CHECK((x) < (y))
13 #define CHECK_GT(x, y) CHECK((x) > (y))
14 #define CHECK_LE(x, y) CHECK((x) <= (y))
15 #define CHECK_GE(x, y) CHECK((x) >= (y))
16 
17 #define DCHECK_EQ(x, y) DCHECK((x) == (y))
18 #define DCHECK_NE(x, y) DCHECK((x) != (y))
19 #define DCHECK_LT(x, y) DCHECK((x) < (y))
20 #define DCHECK_GT(x, y) DCHECK((x) > (y))
21 #define DCHECK_LE(x, y) DCHECK((x) <= (y))
22 #define DCHECK_GE(x, y) DCHECK((x) >= (y))
23 
24 #endif  // THIRD_PARTY_BASE_CHECK_OP_H_
25