[+] ErrorStack::HasCapturedMessage (to disambiguate C or missing SysPushErrorMemory OOM conditions)

This commit is contained in:
Reece Wilson 2024-02-15 00:56:43 +00:00
parent 1f8ecd1bbd
commit 98b72f7e0a

View File

@ -31,18 +31,23 @@ namespace Aurora::Debug
AUKN_SYM ErrorStack();
AUKN_SYM ~ErrorStack();
inline bool HasCaptured()
inline bool HasCapturedMessage()
{
CheckErrors();
return bool(this->pHead);
}
inline bool HasCaptured()
{
return HasCapturedMessage() || this->bOutOfMemory;
}
inline bool HasMultipleOccurred()
{
return this->HasCaptured() && bool(this->pHead->pNextThreadMesage);
}
inline AuOptional<const StackTrace &>ToStackTrace()
inline AuOptional<const StackTrace &> ToStackTrace()
{
if (!this->HasCaptured())
{