SSX3LobbyServer/lib/base/assert.cpp

15 lines
322 B
C++
Raw Normal View History

#include <cstdio>
#include <cstdlib>
#include <base/logger.hpp>
namespace base {
static Logger gAssertLogger{MakeChannelId(MessageSource::Base, MessageComponentSource::Base_Assertions)};
[[noreturn]] void ExitMsg(const char* message) {
gAssertLogger.Fatal("{}", message);
std::exit(0xAF);
}
} // namespace base