xref: /aosp_15_r20/external/angle/src/common/base/anglebase/logging.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker //
2*8975f5c5SAndroid Build Coastguard Worker // Copyright 2016 The ANGLE Project Authors. All rights reserved.
3*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
4*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file.
5*8975f5c5SAndroid Build Coastguard Worker //
6*8975f5c5SAndroid Build Coastguard Worker // logging.h: Compatiblity hacks for importing Chromium's base/numerics.
7*8975f5c5SAndroid Build Coastguard Worker 
8*8975f5c5SAndroid Build Coastguard Worker #ifndef ANGLEBASE_LOGGING_H_
9*8975f5c5SAndroid Build Coastguard Worker #define ANGLEBASE_LOGGING_H_
10*8975f5c5SAndroid Build Coastguard Worker 
11*8975f5c5SAndroid Build Coastguard Worker #include "common/debug.h"
12*8975f5c5SAndroid Build Coastguard Worker 
13*8975f5c5SAndroid Build Coastguard Worker #ifndef DCHECK
14*8975f5c5SAndroid Build Coastguard Worker #    define DCHECK(X) ASSERT(X)
15*8975f5c5SAndroid Build Coastguard Worker #endif
16*8975f5c5SAndroid Build Coastguard Worker 
17*8975f5c5SAndroid Build Coastguard Worker #ifndef CHECK
18*8975f5c5SAndroid Build Coastguard Worker #    define CHECK(X) ASSERT(X)
19*8975f5c5SAndroid Build Coastguard Worker #endif
20*8975f5c5SAndroid Build Coastguard Worker 
21*8975f5c5SAndroid Build Coastguard Worker // Unfortunately ANGLE relies on ASSERT being an empty statement, which these libs don't respect.
22*8975f5c5SAndroid Build Coastguard Worker #ifndef NOTREACHED
23*8975f5c5SAndroid Build Coastguard Worker #    define NOTREACHED() ({ UNREACHABLE(); })
24*8975f5c5SAndroid Build Coastguard Worker #endif
25*8975f5c5SAndroid Build Coastguard Worker 
26*8975f5c5SAndroid Build Coastguard Worker #endif  // ANGLEBASE_LOGGING_H_
27