Add cast by Tree and refactor

This commit is contained in:
Данил
2025-02-21 20:10:57 +07:00
parent a429424143
commit 5bfafba515
5 changed files with 92 additions and 39 deletions
+17
View File
@@ -0,0 +1,17 @@
#pragma once
// This macro adds meta information to a type.
#define GENERATE_META(Class) \
class Class; \
template<> struct Meta <Class> { \
static constexpr Classes Type = Classes::##Class; \
};
// Predeclarate struct for meta information
template<class T> struct Meta;
// Enum type classes
enum class Classes
{
IRTTI
};