AuroraRuntime/Include/Aurora/Debug/SysPanic.hpp
Reece Wilson 89d341b4fc [+] AuDebug::ErrorStack / AuErrorStack
[+] Begin stubbing out memory crunch apis
[*] Fixed MT consoletty missed flushes
2022-11-30 11:11:18 +00:00

25 lines
553 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: SysPanic.hpp
Date: 2021-6-10
Author: Reece
***/
#pragma once
#if defined(_AUHAS_FMT)
template<typename ... T>
static inline void AU_NORETURN SysPanic(T... args)
{
Aurora::Debug::AddMemoryCrunch();
try
{
Aurora::Logging::WriteLinef(static_cast<AuUInt8>(Aurora::Logging::ELogLevel::eError), Aurora::Console::EAnsiColor::eBoldRed, "Fatal", AuForward<T>(args)...);
}
catch (...)
{
}
Aurora::Debug::Panic();
}
#endif