mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
26 lines
511 B
C++
26 lines
511 B
C++
#ifndef PLATFORM_INITIALIZER_H
|
|
#define PLATFORM_INITIALIZER_H
|
|
|
|
#include "core/os/platform.h"
|
|
#include "core/os/crash_handler.h"
|
|
|
|
|
|
class PlatformInitializer {
|
|
public:
|
|
static void arg_setup(int argc, char **argv, char **envp);
|
|
|
|
static void allocate_platform();
|
|
static void free_platform();
|
|
|
|
static void allocate_crash_handler();
|
|
static void free_crash_handler();
|
|
|
|
static void allocate_all();
|
|
static void free_all();
|
|
|
|
protected:
|
|
static CrashHandler *_crash_handler;
|
|
static Platform *_platform;
|
|
};
|
|
|
|
#endif |