Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: webrtc/rtc_base/checks.cc

Issue 3007253002: Remove typedefs.h from webrtc/ root (part 1)
Patch Set: backwards compatible FALLTHROUGH #define Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/rtc_base/checks.h ('k') | webrtc/rtc_base/httpbase.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 FatalMessage::FatalMessage(const char* file, int line) { 93 FatalMessage::FatalMessage(const char* file, int line) {
94 Init(file, line); 94 Init(file, line);
95 } 95 }
96 96
97 FatalMessage::FatalMessage(const char* file, int line, std::string* result) { 97 FatalMessage::FatalMessage(const char* file, int line, std::string* result) {
98 Init(file, line); 98 Init(file, line);
99 stream_ << "Check failed: " << *result << std::endl << "# "; 99 stream_ << "Check failed: " << *result << std::endl << "# ";
100 delete result; 100 delete result;
101 } 101 }
102 102
103 NO_RETURN FatalMessage::~FatalMessage() { 103 RTC_NO_RETURN FatalMessage::~FatalMessage() {
104 fflush(stdout); 104 fflush(stdout);
105 fflush(stderr); 105 fflush(stderr);
106 stream_ << std::endl << "#" << std::endl; 106 stream_ << std::endl << "#" << std::endl;
107 PrintError(stream_.str().c_str()); 107 PrintError(stream_.str().c_str());
108 DumpBacktrace(); 108 DumpBacktrace();
109 fflush(stderr); 109 fflush(stderr);
110 abort(); 110 abort();
111 } 111 }
112 112
113 void FatalMessage::Init(const char* file, int line) { 113 void FatalMessage::Init(const char* file, int line) {
(...skipping 15 matching lines...) Expand all
129 const unsigned long&, const unsigned int&, const char* names); 129 const unsigned long&, const unsigned int&, const char* names);
130 template std::string* MakeCheckOpString<unsigned int, unsigned long>( 130 template std::string* MakeCheckOpString<unsigned int, unsigned long>(
131 const unsigned int&, const unsigned long&, const char* names); 131 const unsigned int&, const unsigned long&, const char* names);
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 RTC_NO_RETURN void rtc_FatalMessage(const char* file,
140 int line,
141 const char* msg) {
140 rtc::FatalMessage(file, line).stream() << msg; 142 rtc::FatalMessage(file, line).stream() << msg;
141 } 143 }
OLDNEW
« no previous file with comments | « webrtc/rtc_base/checks.h ('k') | webrtc/rtc_base/httpbase.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698