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
15PROMEKI_NAMESPACE_BEGIN
16
78class 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
224PROMEKI_NAMESPACE_END
225
226#endif // PROMEKI_ENABLE_CORE