rcpp_framework/platform/platform_initializer.h

26 lines
511 B
C
Raw Normal View History

#ifndef PLATFORM_INITIALIZER_H
#define PLATFORM_INITIALIZER_H
2021-11-09 17:47:51 +01:00
#include "core/os/platform.h"
#include "core/os/crash_handler.h"
class PlatformInitializer {
2021-11-09 17:47:51 +01:00
public:
static void arg_setup(int argc, char **argv, char **envp);
2021-11-09 17:47:51 +01:00
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;
2021-11-09 17:47:51 +01:00
static Platform *_platform;
};
#endif