Reece
d8e000b5c3
[*] Fix up gen1 copypasta [+] ConsoleMessage::ToPersistentString [*] Adjust ConsoleMessage formatting
34 lines
725 B
C++
34 lines
725 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Debug.hpp
|
|
Date: 2021-6-12
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::Debug
|
|
{
|
|
struct LastError
|
|
{
|
|
AuUInt address;
|
|
EFailureCategory category;
|
|
AuString dbg;
|
|
};
|
|
|
|
AuUInt32 GetOSErrorFence();
|
|
AuOptional<OSError_t> TryGetOrFetchOSError();
|
|
|
|
AuUInt32 GetCErrorFence();
|
|
AuOptional<AuUInt32> TryGetOrFetchCError();
|
|
|
|
AuOptional<OSError_t> TryFetchOSError();
|
|
AuOptional<AuUInt32> TryFetchCError();
|
|
|
|
AuUInt32 ReportStackTrace(const StackTrace &trace, const AuString &message);
|
|
|
|
void CheckErrors();
|
|
void PlatformHandleFatal(bool fatal);
|
|
void InitDebug();
|
|
}
|