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

Unified Diff: webrtc/base/checks.cc

Issue 2262173002: RTC_CHECK and RTC_DCHECK macros for C (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/checks.h ('k') | webrtc/modules/audio_coding/codecs/opus/opus_interface.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/checks.cc
diff --git a/webrtc/base/checks.cc b/webrtc/base/checks.cc
index d9dc8f2d63bff7c2d51e5dce77ca9ef8ec4c486c..6aaaf9ff83bee8cb70452c0be1b864c40f6eb0b5 100644
--- a/webrtc/base/checks.cc
+++ b/webrtc/base/checks.cc
@@ -133,3 +133,8 @@ template std::string* MakeCheckOpString<std::string, std::string>(
#endif
} // namespace rtc
+
+// Function to call from the C version of the RTC_CHECK and RTC_DCHECK macros.
+NO_RETURN void rtc_FatalMessage(const char* file, int line, const char* msg) {
+ rtc::FatalMessage(file, line).stream() << msg;
+}
« no previous file with comments | « webrtc/base/checks.h ('k') | webrtc/modules/audio_coding/codecs/opus/opus_interface.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698