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