OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 |
11 #import <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
12 | 12 |
13 #import "webrtc/base/objc/RTCMacros.h" | 13 #import <WebRTC/RTCMacros.h> |
14 | 14 |
15 // Subset of rtc::LoggingSeverity. | 15 // Subset of rtc::LoggingSeverity. |
16 typedef NS_ENUM(NSInteger, RTCLoggingSeverity) { | 16 typedef NS_ENUM(NSInteger, RTCLoggingSeverity) { |
17 RTCLoggingSeverityVerbose, | 17 RTCLoggingSeverityVerbose, |
18 RTCLoggingSeverityInfo, | 18 RTCLoggingSeverityInfo, |
19 RTCLoggingSeverityWarning, | 19 RTCLoggingSeverityWarning, |
20 RTCLoggingSeverityError, | 20 RTCLoggingSeverityError, |
21 }; | 21 }; |
22 | 22 |
23 // Wrapper for C++ LOG(sev) macros. | 23 // Wrapper for C++ LOG(sev) macros. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 #if !defined(NDEBUG) | 61 #if !defined(NDEBUG) |
62 #define RTCLogDebug(format, ...) RTCLogInfo(format, ##__VA_ARGS__) | 62 #define RTCLogDebug(format, ...) RTCLogInfo(format, ##__VA_ARGS__) |
63 #else | 63 #else |
64 #define RTCLogDebug(format, ...) \ | 64 #define RTCLogDebug(format, ...) \ |
65 do { \ | 65 do { \ |
66 } while (false) | 66 } while (false) |
67 #endif | 67 #endif |
68 | 68 |
69 #define RTCLog(format, ...) RTCLogInfo(format, ##__VA_ARGS__) | 69 #define RTCLog(format, ...) RTCLogInfo(format, ##__VA_ARGS__) |
OLD | NEW |