mirror of
https://github.com/XITRIX/NXKit.git
synced 2026-05-30 11:46:52 +00:00
20 lines
333 B
C++
20 lines
333 B
C++
//
|
|
// Fatal.cpp
|
|
// SDLTest
|
|
//
|
|
// Created by Даниил Виноградов on 14.03.2023.
|
|
//
|
|
|
|
#include <tools/Fatal.h>
|
|
|
|
namespace NXKit {
|
|
|
|
[[noreturn]] void fatal(const std::string& message)
|
|
{
|
|
// brls::Logger::error("Fatal error: {}", message);
|
|
printf("%s\n", message.c_str());
|
|
throw std::logic_error(message);
|
|
}
|
|
|
|
}
|