2023-07-16 05:40:38 -04:00
|
|
|
//! Implementation of lucore assertion facilities
|
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdlib>
|
2023-07-17 06:59:20 -04:00
|
|
|
#include <lucore/Logger.hpp>
|
2023-07-16 05:40:38 -04:00
|
|
|
|
|
|
|
namespace lucore {
|
|
|
|
|
2023-07-18 05:48:59 -04:00
|
|
|
[[noreturn]] void ExitMsg(const char* message) {
|
|
|
|
LogFatal("{}", message);
|
2023-07-16 05:40:38 -04:00
|
|
|
std::quick_exit(0xAF);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace lucore
|