- Basic RTTI type data with inheritance.
This commit is contained in:
@@ -21,9 +21,8 @@
|
||||
|
||||
#include <fennec/containers/list.h>
|
||||
#include <fennec/containers/sequence.h>
|
||||
#include <fennec/langproc/strings/cstring.h>
|
||||
#include <fennec/langproc/strings/string.h>
|
||||
#include <fennec/lang/typed.h>
|
||||
#include <fennec/lang/strings/cstring.h>
|
||||
#include <fennec/lang/strings/string.h>
|
||||
#include <fennec/platform/interface/fwd.h>
|
||||
#include <fennec/platform/interface/window.h>
|
||||
|
||||
@@ -61,7 +60,7 @@
|
||||
namespace fennec
|
||||
{
|
||||
|
||||
class platform : public typed<platform> {
|
||||
class platform {
|
||||
public:
|
||||
using shared_object = struct shared_object;
|
||||
using symbol = void*;
|
||||
@@ -131,9 +130,8 @@ public:
|
||||
|
||||
protected:
|
||||
template<typename PlatformT>
|
||||
explicit platform(const cstring& name, PlatformT* type)
|
||||
: typed(type)
|
||||
, name(name) {
|
||||
explicit platform(const cstring& name, PlatformT*)
|
||||
: name(name) {
|
||||
assertf(globals.singleton == nullptr, "Conflicting platform implementations!");
|
||||
globals.singleton = this;
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
#ifndef FENNEC_PLATFORM_INTERFACE_WINDOW_H
|
||||
#define FENNEC_PLATFORM_INTERFACE_WINDOW_H
|
||||
|
||||
#include <fennec/lang/types.h>
|
||||
#include <fennec/langproc/strings/string.h>
|
||||
#include <fennec/langcpp/types.h>
|
||||
#include <fennec/lang/strings/string.h>
|
||||
#include <fennec/renderers/interface/gfxcontext.h>
|
||||
|
||||
namespace fennec
|
||||
|
||||
Reference in New Issue
Block a user