1 // Copyright (c) 2011 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.
5 #ifndef BASE_LOGGING_H_
6 #define BASE_LOGGING_H_
10 #define DCHECK(x) if (!(x)) std::cout << "Check failed"
11 #define CHECK(x) if (!(x)) std::cout << "Check failed"
12 #define NOTREACHED() std::cout << "Not reached"
13 #define DCHECK_EQ(x, y) if ((x) != (y)) std::cout << "Check failed"
14 #define DCHECK_LE(x, y) if ((x) > (y)) std::cout << "Check failed"
15 #define DCHECK_GE(x, y) if ((x) < (y)) std::cout << "Check failed"
16 #define DCHECK_NE(x, y) if ((x) == (y)) std::cout << "Check failed"
17 #define CHECK_NE(x, y) if ((x) == (y)) std::cout << "Check failed"
18 //#define MAX(x,y) ((x) > (y) ? (x) : (y))
20 #ifndef WARN_UNUSED_RESULT
21 //#define WARN_UNUSED_RESULT
26 #endif // BASE_LOGGING_H_