blob: c3d73c44dde30ec09e2b07c1a068c8eb35667a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/webrtc/rtc_base/checks.h"
#include "base/logging.h"
namespace rtc::webrtc_checks_impl {
RTC_NORETURN void WriteFatalLog(absl::string_view output) {
LOG(FATAL) << output;
#if !defined(_MSC_VER) || defined(__clang__)
__builtin_unreachable();
#else
__assume(0);
#endif
}
RTC_NORETURN void WriteFatalLog(const char* file,
int line,
absl::string_view output) {
{
logging::LogMessage msg(file, line, logging::LOG_FATAL);
msg.stream() << output;
}
#if !defined(_MSC_VER) || defined(__clang__)
__builtin_unreachable();
#else
__assume(0);
#endif
}
} // namespace rtc::webrtc_checks_impl
|