| 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/base_export.h" | 8 #include "base/base_export.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), \ | 80 LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), \ |
| 81 DLOG_IS_ON(severity) && (condition)) | 81 DLOG_IS_ON(severity) && (condition)) |
| 82 | 82 |
| 83 #define OSSTATUS_DVLOG(verbose_level, status) \ | 83 #define OSSTATUS_DVLOG(verbose_level, status) \ |
| 84 LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \ | 84 LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \ |
| 85 MAC_DVLOG_IS_ON(verbose_level)) | 85 MAC_DVLOG_IS_ON(verbose_level)) |
| 86 #define OSSTATUS_DVLOG_IF(verbose_level, condition, status) \ | 86 #define OSSTATUS_DVLOG_IF(verbose_level, condition, status) \ |
| 87 LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \ | 87 LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \ |
| 88 MAC_DVLOG_IS_ON(verbose_level) && (condition)) | 88 MAC_DVLOG_IS_ON(verbose_level) && (condition)) |
| 89 | 89 |
| 90 #define OSSTATUS_DCHECK(condition, status) \ | 90 #define OSSTATUS_DCHECK(condition, status) \ |
| 91 LAZY_STREAM(OSSTATUS_LOG_STREAM(FATAL, status), \ | 91 LAZY_STREAM(OSSTATUS_LOG_STREAM(FATAL, status), \ |
| 92 DCHECK_IS_ON && !(condition)) \ | 92 DCHECK_IS_ON() && !(condition)) \ |
| 93 << "Check failed: " # condition << ". " | 93 << "Check failed: " #condition << ". " |
| 94 | 94 |
| 95 #endif // BASE_MAC_MAC_LOGGING_H_ | 95 #endif // BASE_MAC_MAC_LOGGING_H_ |
| OLD | NEW |