/
githubmirror
/
yuzu
Обзор
Документация
Войти
/
githubmirror
/
yuzu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/common/assert.cpp
21 строка
493 B
FearlessTobi
assert/logging: Stop the logging thread and flush the backends before crashing
26 дек 2023, 12:35
26 дек 2023, 12:35
4f569fd
Код
Авторство
О чём код?
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #include "common/assert.h" #include "common/common_funcs.h" #include "common/logging/backend.h" #include "common/settings.h" void assert_fail_impl() { if (Settings::values.use_debug_asserts) { Common::Log::Stop(); Crash(); } } [[noreturn]] void unreachable_impl() { Common::Log::Stop(); Crash(); throw std::runtime_error("Unreachable code"); }