gmod-lcpu/native/projects/lucore/src/Assert.cpp

15 lines
307 B
C++
Raw Normal View History

//! Implementation of lucore assertion facilities
#include <cstdio>
#include <cstdlib>
#include <lucore/Logger.hpp>
namespace lucore {
[[noreturn]] void ExitMsg(const char* fileName, int fileLine, const char* message) {
2023-07-17 16:27:27 -04:00
Logger::The().Fatal(message);
std::quick_exit(0xAF);
}
} // namespace lucore