[+] ErrorStack::HasCapturedMessage (to disambiguate C or missing SysPushErrorMemory OOM conditions)
This commit is contained in:
parent
1f8ecd1bbd
commit
98b72f7e0a
@ -31,18 +31,23 @@ namespace Aurora::Debug
|
|||||||
AUKN_SYM ErrorStack();
|
AUKN_SYM ErrorStack();
|
||||||
AUKN_SYM ~ErrorStack();
|
AUKN_SYM ~ErrorStack();
|
||||||
|
|
||||||
inline bool HasCaptured()
|
inline bool HasCapturedMessage()
|
||||||
{
|
{
|
||||||
CheckErrors();
|
CheckErrors();
|
||||||
return bool(this->pHead);
|
return bool(this->pHead);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool HasCaptured()
|
||||||
|
{
|
||||||
|
return HasCapturedMessage() || this->bOutOfMemory;
|
||||||
|
}
|
||||||
|
|
||||||
inline bool HasMultipleOccurred()
|
inline bool HasMultipleOccurred()
|
||||||
{
|
{
|
||||||
return this->HasCaptured() && bool(this->pHead->pNextThreadMesage);
|
return this->HasCaptured() && bool(this->pHead->pNextThreadMesage);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline AuOptional<const StackTrace &>ToStackTrace()
|
inline AuOptional<const StackTrace &> ToStackTrace()
|
||||||
{
|
{
|
||||||
if (!this->HasCaptured())
|
if (!this->HasCaptured())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user