15 lines
322 B
C++
15 lines
322 B
C++
|
#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
|