Relicense to 0BSD

This commit is contained in:
MerryMage
2020-04-23 15:25:11 +01:00
parent d51a83d265
commit a8a712c801
286 changed files with 574 additions and 1035 deletions

19
src/common/assert.cpp Normal file
View File

@@ -0,0 +1,19 @@
/* This file is part of the dynarmic project.
* Copyright (c) 2020 MerryMage
* SPDX-License-Identifier: 0BSD
*/
#include <cstdio>
#include <exception>
#include <fmt/format.h>
namespace Dynarmic::Common {
[[noreturn]] void Terminate(fmt::string_view msg, fmt::format_args args) {
fmt::print(stderr, "dynarmic assertion failed: ");
fmt::vprint(stderr, msg, args);
std::terminate();
}
} // namespace Dynarmic::Common