#include <stddef.h>
#include "ship/Api.h"
#include <memory>
Go to the source code of this file.
|
| namespace | Ship |
| | Core namespace for the libultraship engine framework.
|
| |
|
| typedef void(* | CrashHandlerCallback) (char *, size_t *) |
| | Callback type invoked by the crash handler when a crash is detected.
|
| |
◆ CrashHandlerCallback
| typedef void(* CrashHandlerCallback) (char *, size_t *) |
Callback type invoked by the crash handler when a crash is detected.
The callback receives a mutable character buffer (char*) and the current write offset within that buffer (size_t*). Implementations should append any game-specific crash context and update the offset accordingly.
◆ CrashHandlerGetComponent()
◆ CrashHandlerRegisterCallback()
Registers an application callback to be invoked on crash.
The callback is called after the CrashHandler has written the platform crash report, giving the application an opportunity to append additional information (e.g. current game state) before the process exits.
- Parameters
-
| callback | Function to invoke on crash. Pass nullptr to clear the callback. |
◆ CrashHandlerSetComponent()