OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2006 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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #if defined(WEBRTC_ANDROID) | 24 #if defined(WEBRTC_ANDROID) |
25 #define RTC_LOG_TAG "rtc" | 25 #define RTC_LOG_TAG "rtc" |
26 #include <android/log.h> // NOLINT | 26 #include <android/log.h> // NOLINT |
27 #endif | 27 #endif |
28 | 28 |
29 #if defined(WEBRTC_WIN) | 29 #if defined(WEBRTC_WIN) |
30 #include <windows.h> | 30 #include <windows.h> |
31 #endif | 31 #endif |
32 | 32 |
33 #include "webrtc/rtc_base/checks.h" | 33 #include "webrtc/base/checks.h" |
34 #include "webrtc/rtc_base/logging.h" | 34 #include "webrtc/base/logging.h" |
35 | 35 |
36 #if defined(_MSC_VER) | 36 #if defined(_MSC_VER) |
37 // Warning C4722: destructor never returns, potential memory leak. | 37 // Warning C4722: destructor never returns, potential memory leak. |
38 // FatalMessage's dtor very intentionally aborts. | 38 // FatalMessage's dtor very intentionally aborts. |
39 #pragma warning(disable:4722) | 39 #pragma warning(disable:4722) |
40 #endif | 40 #endif |
41 | 41 |
42 namespace rtc { | 42 namespace rtc { |
43 | 43 |
44 void VPrintError(const char* format, va_list args) { | 44 void VPrintError(const char* format, va_list args) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 template std::string* MakeCheckOpString<std::string, std::string>( | 132 template std::string* MakeCheckOpString<std::string, std::string>( |
133 const std::string&, const std::string&, const char* name); | 133 const std::string&, const std::string&, const char* name); |
134 #endif | 134 #endif |
135 | 135 |
136 } // namespace rtc | 136 } // namespace rtc |
137 | 137 |
138 // Function to call from the C version of the RTC_CHECK and RTC_DCHECK macros. | 138 // Function to call from the C version of the RTC_CHECK and RTC_DCHECK macros. |
139 NO_RETURN void rtc_FatalMessage(const char* file, int line, const char* msg) { | 139 NO_RETURN void rtc_FatalMessage(const char* file, int line, const char* msg) { |
140 rtc::FatalMessage(file, line).stream() << msg; | 140 rtc::FatalMessage(file, line).stream() << msg; |
141 } | 141 } |
OLD | NEW |