AuroraRuntime/Source/Debug/Debug.hpp
Reece 510928e62e [*] Linux should not raise int3 unless the binary is a debug one
TODO: investigate registering an int3 signal handler to prevent crashing under internal builds
[*] Amend MemoryViews
[*] Begin shifting towards MemoryView based binary APIs
[*] Fix public RSA key leak
[+] Some clean up and possible bug fixes
2021-09-15 00:56:26 +01:00

38 lines
701 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;
FailureCategory category;
AuString dbg;
};
using OSError_t = AuPair<AuUInt64, AuString>;
AuUInt32 GetOSErrorFence();
AuOptional<OSError_t> TryGetOrFetchOSError();
AuUInt32 GetCErrorFence();
AuOptional<int> TryGetOrFetchCError();
void ReportStackTrace(const StackTrace &trace);
AuOptional<OSError_t> TryFetchOSError();
AuOptional<int> TryFetchCError();
void CheckErrors();
void InitDebug();
}