libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
crashhandlerbridge.h
Go to the documentation of this file.
1#pragma once
2
3#include <stddef.h>
4#include "ship/Api.h"
5
13typedef void (*CrashHandlerCallback)(char*, size_t*);
14
15#ifdef __cplusplus
16#include <memory>
17namespace Ship {
18class CrashHandler;
19}
20void CrashHandlerSetComponent(std::shared_ptr<Ship::CrashHandler> crashHandler);
21std::shared_ptr<Ship::CrashHandler> CrashHandlerGetComponent();
22extern "C" {
23#endif
24
35
36#ifdef __cplusplus
37}
38#endif
API export/import macros for cross-platform shared library symbol visibility.
#define API_EXPORT
Marks a symbol for export from (or import into) a shared library.
Definition Api.h:32
std::shared_ptr< Ship::CrashHandler > CrashHandlerGetComponent()
void(* CrashHandlerCallback)(char *, size_t *)
Callback type invoked by the crash handler when a crash is detected.
Definition crashhandlerbridge.h:13
void CrashHandlerSetComponent(std::shared_ptr< Ship::CrashHandler > crashHandler)
API_EXPORT void CrashHandlerRegisterCallback(CrashHandlerCallback callback)
Registers an application callback to be invoked on crash.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14