2023-07-16 05:40:38 -04:00
|
|
|
//! Implementation of lucore assertion facilities
|
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdlib>
|
|
|
|
|
|
|
|
namespace lucore {
|
|
|
|
|
|
|
|
[[noreturn]] void ExitMsg(const char* fileName, int fileLine, const char* message) {
|
2023-07-16 06:05:19 -04:00
|
|
|
// TODO: move this to logger functionality of lucore (the native module will end up
|
|
|
|
// containing a Sink implementation that funnels to either gmod or tier libs..)
|
2023-07-16 05:40:38 -04:00
|
|
|
std::puts(message);
|
|
|
|
std::quick_exit(0xAF);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace lucore
|