Optimized type casting and refactor

This commit is contained in:
Данил
2025-02-23 15:49:53 +07:00
parent 870d93c19f
commit 4436e79e6a
3 changed files with 105 additions and 41 deletions
+3 -3
View File
@@ -1,16 +1,16 @@
#pragma once
// This macro adds meta information to a type.
// 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
// Predeclared struct for meta information
template<class T> struct Meta;
// Enum type classes
// Enum type classes
enum class Classes
{
IRTTI