Index: base/logging.cc |
diff --git a/base/logging.cc b/base/logging.cc |
index c7a8881456d13559484dca912b5addfe219c342c..32d787cc1265a7d0da0a2b7f96dc8201a9200aac 100644 |
--- a/base/logging.cc |
+++ b/base/logging.cc |
@@ -803,6 +803,11 @@ std::wstring GetLogFileFullPath() { |
} |
#endif |
+void LogErrorNotReached(const char* file, int line, const char* function_name) { |
+ LogMessage(file, line, LOG_ERROR).stream() |
+ << "NOTREACHED() hit in " << function_name << "."; |
+} |
+ |
} // namespace logging |
std::ostream& std::operator<<(std::ostream& out, const wchar_t* wstr) { |