libpromeki
1.0.0-alpha
PROfessional MEdia toolKIt
Loading...
Searching...
No Matches
crashhandler.h
Go to the documentation of this file.
1
8
#pragma once
9
10
11
#include <promeki/config.h>
12
#if PROMEKI_ENABLE_CORE
13
#include <
promeki/namespace.h
>
14
15
PROMEKI_NAMESPACE_BEGIN
16
78
class
CrashHandler {
79
public
:
113
static
void
install();
114
120
static
void
uninstall();
121
126
static
bool
isInstalled();
127
138
using
CleanupCallback = void (*)(
void
*userdata);
139
162
static
int
addCleanupHandler(CleanupCallback cb,
void
*userdata);
163
172
static
void
removeCleanupHandler(
int
handle);
173
204
static
void
writeTrace(
const
char
*reason =
nullptr
);
205
210
static
bool
consoleTraceEnabled();
211
221
static
void
setConsoleTraceEnabled(
bool
enabled);
222
};
223
224
PROMEKI_NAMESPACE_END
225
226
#endif
// PROMEKI_ENABLE_CORE
namespace.h
include
promeki
crashhandler.h
Generated on 2026-06-07 19:02:32 from commit e22611a (1.0.0-alpha).