OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_MAC_MAC_LOGGING_H_ | 5 #ifndef BASE_MAC_MAC_LOGGING_H_ |
6 #define BASE_MAC_MAC_LOGGING_H_ | 6 #define BASE_MAC_MAC_LOGGING_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 #define OSSTATUS_DVLOG(verbose_level, status) \ | 75 #define OSSTATUS_DVLOG(verbose_level, status) \ |
76 LAZY_STREAM(OSSTATUS_VPLOG_STREAM(verbose_level, status), \ | 76 LAZY_STREAM(OSSTATUS_VPLOG_STREAM(verbose_level, status), \ |
77 DVLOG_IS_ON(verbose_level)) | 77 DVLOG_IS_ON(verbose_level)) |
78 #define OSSTATUS_DVLOG_IF(verbose_level, condition, status) \ | 78 #define OSSTATUS_DVLOG_IF(verbose_level, condition, status) \ |
79 LAZY_STREAM(OSSTATUS_VPLOG_STREAM(verbose_level, status) \ | 79 LAZY_STREAM(OSSTATUS_VPLOG_STREAM(verbose_level, status) \ |
80 DVLOG_IS_ON(verbose_level) && (condition)) | 80 DVLOG_IS_ON(verbose_level) && (condition)) |
81 | 81 |
82 #define OSSTATUS_DCHECK(condition, status) \ | 82 #define OSSTATUS_DCHECK(condition, status) \ |
83 LAZY_STREAM(OSSTATUS_LOG_STREAM(FATAL, status), \ | 83 LAZY_STREAM(OSSTATUS_LOG_STREAM(FATAL, status), \ |
84 DCHECK_IS_ON() && !(condition)) \ | 84 DCHECK_IS_ON && !(condition)) \ |
85 << "Check failed: " # condition << ". " | 85 << "Check failed: " # condition << ". " |
86 | 86 |
87 #endif // BASE_MAC_MAC_LOGGING_H_ | 87 #endif // BASE_MAC_MAC_LOGGING_H_ |
OLD | NEW |