[*] 260e33fd
cont
This commit is contained in:
parent
260e33fd91
commit
ce33642b1e
@ -95,6 +95,18 @@
|
||||
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
|
||||
*/
|
||||
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user