diff --git a/Include/Aurora/Debug/SysAssertions.hpp b/Include/Aurora/Debug/SysAssertions.hpp index c53b4c68..6c282011 100644 --- a/Include/Aurora/Debug/SysAssertions.hpp +++ b/Include/Aurora/Debug/SysAssertions.hpp @@ -95,6 +95,18 @@ SysPanic2(filenoOpt, msg, args...); } + /// @private + template + 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 + 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(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 */