95 void PrintStack(CONTEXT* ctx);
99 void OnAdded(
bool forced)
override;
102 std::unique_ptr<char[]> mOutBuffer;
103 static constexpr size_t gMaxBufferSize = 32768;
104 size_t mOutBuffersize = 0;
107 void AppendStrTrunc(
const char* str);
110 bool CheckStrLen(
const char* str);
A named Part with a parent/child hierarchy and optional thread safety.
Definition Component.h:34
Installs platform-specific signal / exception handlers to capture crash information.
Definition CrashHandler.h:47
CrashHandler(CrashHandlerCallback callback)
Installs the platform crash handlers and immediately registers callback.
void PrintCommon()
Writes platform-agnostic crash header information (OS, build info, etc.) to the report buffer.
void PrintRegisters(ucontext_t *ctx)
Appends the values of the CPU registers from ctx to the crash report.
CrashHandler()
Installs the platform crash handlers with no application callback.
void AppendStr(const char *str)
Appends str (without a trailing newline) to the crash report buffer.
void AppendLine(const char *str)
Appends str followed by a newline to the crash report buffer.
void RegisterCallback(CrashHandlerCallback callback)
Registers (or replaces) the application callback.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
void(* CrashHandlerCallback)(char *, size_t *)
Callback type invoked by CrashHandler when a crash is detected.
Definition CrashHandler.h:30