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

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

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 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/base/checks.h ('k') | webrtc/base/criticalsection.h » ('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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 DumpBacktrace(); 102 DumpBacktrace();
103 fflush(stderr); 103 fflush(stderr);
104 abort(); 104 abort();
105 } 105 }
106 106
107 void FatalMessage::Init(const char* file, int line) { 107 void FatalMessage::Init(const char* file, int line) {
108 stream_ << std::endl << std::endl << "#" << std::endl << "# Fatal error in " 108 stream_ << std::endl << std::endl << "#" << std::endl << "# Fatal error in "
109 << file << ", line " << line << std::endl << "# "; 109 << file << ", line " << line << std::endl << "# ";
110 } 110 }
111 111
112 // Refer to comments in checks.h.
113 #ifndef WEBRTC_CHROMIUM_BUILD
114
115 // MSVC doesn't like complex extern templates and DLLs. 112 // MSVC doesn't like complex extern templates and DLLs.
116 #if !defined(COMPILER_MSVC) 113 #if !defined(COMPILER_MSVC)
117 // Explicit instantiations for commonly used comparisons. 114 // Explicit instantiations for commonly used comparisons.
118 template std::string* MakeCheckOpString<int, int>( 115 template std::string* MakeCheckOpString<int, int>(
119 const int&, const int&, const char* names); 116 const int&, const int&, const char* names);
120 template std::string* MakeCheckOpString<unsigned long, unsigned long>( 117 template std::string* MakeCheckOpString<unsigned long, unsigned long>(
121 const unsigned long&, const unsigned long&, const char* names); 118 const unsigned long&, const unsigned long&, const char* names);
122 template std::string* MakeCheckOpString<unsigned long, unsigned int>( 119 template std::string* MakeCheckOpString<unsigned long, unsigned int>(
123 const unsigned long&, const unsigned int&, const char* names); 120 const unsigned long&, const unsigned int&, const char* names);
124 template std::string* MakeCheckOpString<unsigned int, unsigned long>( 121 template std::string* MakeCheckOpString<unsigned int, unsigned long>(
125 const unsigned int&, const unsigned long&, const char* names); 122 const unsigned int&, const unsigned long&, const char* names);
126 template std::string* MakeCheckOpString<std::string, std::string>( 123 template std::string* MakeCheckOpString<std::string, std::string>(
127 const std::string&, const std::string&, const char* name); 124 const std::string&, const std::string&, const char* name);
128 #endif 125 #endif
129 126
130 #endif // WEBRTC_CHROMIUM_BUILD
131
132 } // namespace rtc 127 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/checks.h ('k') | webrtc/base/criticalsection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698