| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 #include <list> | 51 #include <list> |
| 52 #include <sstream> | 52 #include <sstream> |
| 53 #include <string> | 53 #include <string> |
| 54 #include <utility> | 54 #include <utility> |
| 55 | 55 |
| 56 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) | 56 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) |
| 57 #include <CoreServices/CoreServices.h> | 57 #include <CoreServices/CoreServices.h> |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 #include "webrtc/rtc_base/basictypes.h" | 60 #include "webrtc/base/basictypes.h" |
| 61 #include "webrtc/rtc_base/constructormagic.h" | 61 #include "webrtc/base/constructormagic.h" |
| 62 #include "webrtc/rtc_base/thread_annotations.h" | 62 #include "webrtc/base/thread_annotations.h" |
| 63 | 63 |
| 64 namespace rtc { | 64 namespace rtc { |
| 65 | 65 |
| 66 /////////////////////////////////////////////////////////////////////////////// | 66 /////////////////////////////////////////////////////////////////////////////// |
| 67 // ConstantLabel can be used to easily generate string names from constant | 67 // ConstantLabel can be used to easily generate string names from constant |
| 68 // values. This can be useful for logging descriptive names of error messages. | 68 // values. This can be useful for logging descriptive names of error messages. |
| 69 // Usage: | 69 // Usage: |
| 70 // const ConstantLabel LIBRARY_ERRORS[] = { | 70 // const ConstantLabel LIBRARY_ERRORS[] = { |
| 71 // KLABEL(SOME_ERROR), | 71 // KLABEL(SOME_ERROR), |
| 72 // KLABEL(SOME_OTHER_ERROR), | 72 // KLABEL(SOME_OTHER_ERROR), |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 #define PLOG(sev, err) \ | 361 #define PLOG(sev, err) \ |
| 362 LOG_ERR_EX(sev, err) | 362 LOG_ERR_EX(sev, err) |
| 363 | 363 |
| 364 // TODO(?): Add an "assert" wrapper that logs in the same manner. | 364 // TODO(?): Add an "assert" wrapper that logs in the same manner. |
| 365 | 365 |
| 366 #endif // LOG | 366 #endif // LOG |
| 367 | 367 |
| 368 } // namespace rtc | 368 } // namespace rtc |
| 369 | 369 |
| 370 #endif // WEBRTC_RTC_BASE_LOGGING_H_ | 370 #endif // WEBRTC_RTC_BASE_LOGGING_H_ |
| OLD | NEW |