- fennec::variant & fennec::generic, TODO: Test
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include <fennec/platform/interface/fwd.h>
|
||||
#include <fennec/platform/interface/window.h>
|
||||
#include <fennec/rtti/enable.h>
|
||||
#include <fennec/rtti/singleton.h>
|
||||
#include <fennec/rtti/detail/_this_t.h>
|
||||
|
||||
/*
|
||||
@@ -62,12 +63,12 @@
|
||||
namespace fennec
|
||||
{
|
||||
|
||||
class platform {
|
||||
class platform : singleton<platform*> {
|
||||
public:
|
||||
using shared_object = struct shared_object;
|
||||
using symbol = void*;
|
||||
|
||||
platform() = default;
|
||||
platform();
|
||||
virtual ~platform() = default;
|
||||
platform(const platform&) = delete;
|
||||
|
||||
|
||||
@@ -32,6 +32,9 @@ public:
|
||||
void initialize() override;
|
||||
|
||||
void shutdown() override;
|
||||
|
||||
FENNEC_RTTI_CLASS_ENABLE(unix_platform) {
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -35,7 +35,9 @@ public:
|
||||
symbol find_symbol(shared_object* obj, const cstring& name) override;
|
||||
|
||||
private:
|
||||
FENNEC_RTTI_CLASS_ENABLE(platform) {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user