This commit is contained in:
Reece Wilson 2024-02-17 02:45:00 +00:00
parent 260e33fd91
commit ce33642b1e

View File

@ -95,6 +95,18 @@
SysPanic2(filenoOpt, msg, args...); SysPanic2(filenoOpt, msg, args...);
} }
/// @private
template<typename ... T>
static auline void SysAssertEx(bool tru, int filenoOpt)
{
if (tru)
{
return;
}
SysPanic2(filenoOpt, "That's all folks");
}
/** /**
A simple assertion with an optional message A simple assertion with an optional message
*/ */
@ -203,6 +215,26 @@
} }
/// @private
template<typename ... T>
static auline void SysAssertExpEx(const char *exp, int filenoOpt, bool tru)
{
if (tru)
{
return;
}
#if !defined(AURORA_ASSERTIONS_NO_EXPRESSIONS)
Aurora::Logging::WriteLinef(
static_cast<AuUInt8>(Aurora::Logging::ELogLevel::eError),
Aurora::Console::EAnsiColor::eBoldRed,
"Fatal",
"Expression failed: {}", exp);
#endif
SysPanic2(filenoOpt, "That's all folks");
}
/** /**
A simple assertion with a debug expresison and optional message A simple assertion with a debug expresison and optional message
*/ */