- Basic RTTI type data with inheritance.

This commit is contained in:
2025-11-28 12:58:23 -05:00
parent b9026ec8da
commit fe8c3a4602
126 changed files with 2158 additions and 979 deletions

View File

@@ -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;
}

View File

@@ -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