AuroraRuntime/Source/Debug/Debug.hpp
Reece Wilson 1ff9feb303 [+] Initial heap stat counter API
[+] Upcoming failure categories
[+] Updated SysPushXXX prototypes
[*] Restore bandwidth OnTick position for extrapolate (using current frame stats, ref to last) fractional lerps into the future with ref to average
[*] Compression.cpp AuList<AuUInt8> upgrade was incomplete & could've been improved with modern apis
2022-12-08 19:34:15 +00:00

39 lines
975 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
#if defined(STAGING) || defined(DEBUG) // not including ship -> do not spam end users with trash they do not understand, do not waste memory on debug cache
#define _AU_USE_EXTENDED_FWD_FACING_DEBUGGING
#endif
namespace Aurora::Debug
{
struct LastError
{
AuUInt uAddress;
EFailureCategory category;
const char *pDbgMessage;
AuUInt16 uLine;
};
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();
}