mirror of
https://github.com/azahar-emu/dynarmic.git
synced 2026-04-09 14:53:33 +02:00
Squashed 'externals/mcl/' content from commit a86a53843
git-subtree-dir: externals/mcl git-subtree-split: a86a53843f82e4d6ca2f2e1437824495acad2712
This commit is contained in:
20
src/assert.cpp
Normal file
20
src/assert.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
// This file is part of the mcl project.
|
||||
// Copyright (c) 2022 merryhime
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include "mcl/assert.hpp"
|
||||
|
||||
#include <cstdio>
|
||||
#include <exception>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
namespace mcl::detail {
|
||||
|
||||
[[noreturn]] void assert_terminate_impl(fmt::string_view msg, fmt::format_args args) {
|
||||
fmt::print(stderr, "assertion failed: ");
|
||||
fmt::vprint(stderr, msg, args);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
} // namespace mcl::detail
|
||||
Reference in New Issue
Block a user