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

16 lines
377 B
C++
Raw Normal View History

//! Implementation of lucore assertion facilities
#include <cstdio>
#include <cstdlib>
namespace lucore {
[[noreturn]] void ExitMsg(const char* fileName, int fileLine, const char* message) {
// TODO: move this to logger functionality of lucore (gmsv_lcpu will end up containing a
// Sink impl..)
std::puts(message);
std::quick_exit(0xAF);
}
} // namespace lucore