2018-01-05 00:50:27 +01:00
|
|
|
/*************************************************************************/
|
|
|
|
/* type_info.h */
|
|
|
|
/*************************************************************************/
|
|
|
|
/* This file is part of: */
|
|
|
|
/* GODOT ENGINE */
|
|
|
|
/* https://godotengine.org */
|
|
|
|
/*************************************************************************/
|
2021-01-01 20:13:46 +01:00
|
|
|
/* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur. */
|
|
|
|
/* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md). */
|
2018-01-05 00:50:27 +01:00
|
|
|
/* */
|
|
|
|
/* Permission is hereby granted, free of charge, to any person obtaining */
|
|
|
|
/* a copy of this software and associated documentation files (the */
|
|
|
|
/* "Software"), to deal in the Software without restriction, including */
|
|
|
|
/* without limitation the rights to use, copy, modify, merge, publish, */
|
|
|
|
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
|
|
|
/* permit persons to whom the Software is furnished to do so, subject to */
|
|
|
|
/* the following conditions: */
|
|
|
|
/* */
|
|
|
|
/* The above copyright notice and this permission notice shall be */
|
|
|
|
/* included in all copies or substantial portions of the Software. */
|
|
|
|
/* */
|
|
|
|
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
|
|
|
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
|
|
|
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
|
|
|
|
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
|
|
|
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
|
|
|
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
|
|
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
|
|
/*************************************************************************/
|
|
|
|
|
2020-03-25 11:10:34 +01:00
|
|
|
#ifndef TYPE_INFO_H
|
|
|
|
#define TYPE_INFO_H
|
2017-08-09 11:54:27 +02:00
|
|
|
|
2020-10-15 17:29:59 +02:00
|
|
|
#include "core/typedefs.h"
|
2017-08-20 17:45:01 +02:00
|
|
|
|
2017-08-09 11:54:27 +02:00
|
|
|
template <bool C, typename T = void>
|
|
|
|
struct EnableIf {
|
|
|
|
typedef T type;
|
|
|
|
};
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
struct EnableIf<false, T> {
|
|
|
|
};
|
|
|
|
|
|
|
|
template <typename, typename>
|
|
|
|
struct TypesAreSame {
|
|
|
|
static bool const value = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
template <typename A>
|
|
|
|
struct TypesAreSame<A, A> {
|
|
|
|
static bool const value = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
template <typename B, typename D>
|
|
|
|
struct TypeInherits {
|
|
|
|
static D *get_d();
|
|
|
|
|
|
|
|
static char (&test(B *))[1];
|
|
|
|
static char (&test(...))[2];
|
|
|
|
|
|
|
|
static bool const value = sizeof(test(get_d())) == sizeof(char) &&
|
|
|
|
!TypesAreSame<B volatile const, void volatile const>::value;
|
|
|
|
};
|
|
|
|
|
2019-04-25 20:24:48 +02:00
|
|
|
namespace GodotTypeInfo {
|
|
|
|
enum Metadata {
|
|
|
|
METADATA_NONE,
|
|
|
|
METADATA_INT_IS_INT8,
|
|
|
|
METADATA_INT_IS_INT16,
|
|
|
|
METADATA_INT_IS_INT32,
|
|
|
|
METADATA_INT_IS_INT64,
|
|
|
|
METADATA_INT_IS_UINT8,
|
|
|
|
METADATA_INT_IS_UINT16,
|
|
|
|
METADATA_INT_IS_UINT32,
|
|
|
|
METADATA_INT_IS_UINT64,
|
|
|
|
METADATA_REAL_IS_FLOAT,
|
|
|
|
METADATA_REAL_IS_DOUBLE
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-07-21 23:25:44 +02:00
|
|
|
// If the compiler fails because it's trying to instantiate the primary 'GetTypeInfo' template
|
|
|
|
// instead of one of the specializations, it's most likely because the type 'T' is not supported.
|
|
|
|
// If 'T' is a class that inherits 'Object', make sure it can see the actual class declaration
|
|
|
|
// instead of a forward declaration. You can always forward declare 'T' in a header file, and then
|
|
|
|
// include the actual declaration of 'T' in the source file where 'GetTypeInfo<T>' is instantiated.
|
2017-08-09 11:54:27 +02:00
|
|
|
template <class T, typename = void>
|
2019-07-21 23:25:44 +02:00
|
|
|
struct GetTypeInfo;
|
2017-08-09 11:54:27 +02:00
|
|
|
|
2019-04-25 20:24:48 +02:00
|
|
|
#define MAKE_TYPE_INFO(m_type, m_var_type) \
|
|
|
|
template <> \
|
|
|
|
struct GetTypeInfo<m_type> { \
|
|
|
|
static const Variant::Type VARIANT_TYPE = m_var_type; \
|
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE; \
|
|
|
|
static inline PropertyInfo get_class_info() { \
|
|
|
|
return PropertyInfo(VARIANT_TYPE, String()); \
|
|
|
|
} \
|
|
|
|
}; \
|
|
|
|
template <> \
|
|
|
|
struct GetTypeInfo<const m_type &> { \
|
|
|
|
static const Variant::Type VARIANT_TYPE = m_var_type; \
|
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE; \
|
|
|
|
static inline PropertyInfo get_class_info() { \
|
|
|
|
return PropertyInfo(VARIANT_TYPE, String()); \
|
|
|
|
} \
|
|
|
|
};
|
|
|
|
|
|
|
|
#define MAKE_TYPE_INFO_WITH_META(m_type, m_var_type, m_metadata) \
|
|
|
|
template <> \
|
|
|
|
struct GetTypeInfo<m_type> { \
|
|
|
|
static const Variant::Type VARIANT_TYPE = m_var_type; \
|
|
|
|
static const GodotTypeInfo::Metadata METADATA = m_metadata; \
|
|
|
|
static inline PropertyInfo get_class_info() { \
|
|
|
|
return PropertyInfo(VARIANT_TYPE, String()); \
|
|
|
|
} \
|
|
|
|
}; \
|
|
|
|
template <> \
|
|
|
|
struct GetTypeInfo<const m_type &> { \
|
|
|
|
static const Variant::Type VARIANT_TYPE = m_var_type; \
|
|
|
|
static const GodotTypeInfo::Metadata METADATA = m_metadata; \
|
|
|
|
static inline PropertyInfo get_class_info() { \
|
|
|
|
return PropertyInfo(VARIANT_TYPE, String()); \
|
|
|
|
} \
|
2017-08-09 11:54:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
MAKE_TYPE_INFO(bool, Variant::BOOL)
|
2019-04-25 20:24:48 +02:00
|
|
|
MAKE_TYPE_INFO_WITH_META(uint8_t, Variant::INT, GodotTypeInfo::METADATA_INT_IS_UINT8)
|
|
|
|
MAKE_TYPE_INFO_WITH_META(int8_t, Variant::INT, GodotTypeInfo::METADATA_INT_IS_INT8)
|
|
|
|
MAKE_TYPE_INFO_WITH_META(uint16_t, Variant::INT, GodotTypeInfo::METADATA_INT_IS_UINT16)
|
|
|
|
MAKE_TYPE_INFO_WITH_META(int16_t, Variant::INT, GodotTypeInfo::METADATA_INT_IS_INT16)
|
|
|
|
MAKE_TYPE_INFO_WITH_META(uint32_t, Variant::INT, GodotTypeInfo::METADATA_INT_IS_UINT32)
|
|
|
|
MAKE_TYPE_INFO_WITH_META(int32_t, Variant::INT, GodotTypeInfo::METADATA_INT_IS_INT32)
|
|
|
|
MAKE_TYPE_INFO_WITH_META(uint64_t, Variant::INT, GodotTypeInfo::METADATA_INT_IS_UINT64)
|
|
|
|
MAKE_TYPE_INFO_WITH_META(int64_t, Variant::INT, GodotTypeInfo::METADATA_INT_IS_INT64)
|
2020-07-27 12:43:20 +02:00
|
|
|
MAKE_TYPE_INFO(char16_t, Variant::INT)
|
|
|
|
MAKE_TYPE_INFO(char32_t, Variant::INT)
|
Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.
- Renames PackedIntArray to PackedInt32Array.
- Renames PackedFloatArray to PackedFloat32Array.
- Adds PackedInt64Array and PackedFloat64Array.
- Renames Variant::REAL to Variant::FLOAT for consistency.
Packed arrays are for storing large amount of data and creating stuff like
meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of
memory. That said, many users requested the ability to have 64 bits packed
arrays for their games, so this is just an optional added type.
For Variant, the float datatype is always 64 bits, and exposed as `float`.
We still have `real_t` which is the datatype that can change from 32 to 64
bits depending on a compile flag (not entirely working right now, but that's
the idea). It affects math related datatypes and code only.
Neither Variant nor PackedArray make use of real_t, which is only intended
for math precision, so the term is removed from there to keep only float.
2020-02-24 19:20:53 +01:00
|
|
|
MAKE_TYPE_INFO_WITH_META(float, Variant::FLOAT, GodotTypeInfo::METADATA_REAL_IS_FLOAT)
|
|
|
|
MAKE_TYPE_INFO_WITH_META(double, Variant::FLOAT, GodotTypeInfo::METADATA_REAL_IS_DOUBLE)
|
2017-08-09 11:54:27 +02:00
|
|
|
|
|
|
|
MAKE_TYPE_INFO(String, Variant::STRING)
|
|
|
|
MAKE_TYPE_INFO(Vector2, Variant::VECTOR2)
|
|
|
|
MAKE_TYPE_INFO(Rect2, Variant::RECT2)
|
|
|
|
MAKE_TYPE_INFO(Vector3, Variant::VECTOR3)
|
2020-03-01 23:14:37 +01:00
|
|
|
MAKE_TYPE_INFO(Vector2i, Variant::VECTOR2I)
|
|
|
|
MAKE_TYPE_INFO(Rect2i, Variant::RECT2I)
|
|
|
|
MAKE_TYPE_INFO(Vector3i, Variant::VECTOR3I)
|
2017-08-09 11:54:27 +02:00
|
|
|
MAKE_TYPE_INFO(Transform2D, Variant::TRANSFORM2D)
|
|
|
|
MAKE_TYPE_INFO(Plane, Variant::PLANE)
|
2021-01-20 08:02:02 +01:00
|
|
|
MAKE_TYPE_INFO(Quaternion, Variant::QUATERNION)
|
2017-11-17 03:09:00 +01:00
|
|
|
MAKE_TYPE_INFO(AABB, Variant::AABB)
|
2017-08-09 11:54:27 +02:00
|
|
|
MAKE_TYPE_INFO(Basis, Variant::BASIS)
|
2021-04-28 09:36:08 +02:00
|
|
|
MAKE_TYPE_INFO(Transform3D, Variant::TRANSFORM3D)
|
2017-08-09 11:54:27 +02:00
|
|
|
MAKE_TYPE_INFO(Color, Variant::COLOR)
|
2020-02-20 22:58:05 +01:00
|
|
|
MAKE_TYPE_INFO(StringName, Variant::STRING_NAME)
|
2017-08-09 11:54:27 +02:00
|
|
|
MAKE_TYPE_INFO(NodePath, Variant::NODE_PATH)
|
2020-11-09 14:53:05 +01:00
|
|
|
MAKE_TYPE_INFO(RID, Variant::RID)
|
2020-02-19 20:27:19 +01:00
|
|
|
MAKE_TYPE_INFO(Callable, Variant::CALLABLE)
|
|
|
|
MAKE_TYPE_INFO(Signal, Variant::SIGNAL)
|
2017-08-09 11:54:27 +02:00
|
|
|
MAKE_TYPE_INFO(Dictionary, Variant::DICTIONARY)
|
|
|
|
MAKE_TYPE_INFO(Array, Variant::ARRAY)
|
2020-02-17 22:06:54 +01:00
|
|
|
MAKE_TYPE_INFO(PackedByteArray, Variant::PACKED_BYTE_ARRAY)
|
Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.
- Renames PackedIntArray to PackedInt32Array.
- Renames PackedFloatArray to PackedFloat32Array.
- Adds PackedInt64Array and PackedFloat64Array.
- Renames Variant::REAL to Variant::FLOAT for consistency.
Packed arrays are for storing large amount of data and creating stuff like
meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of
memory. That said, many users requested the ability to have 64 bits packed
arrays for their games, so this is just an optional added type.
For Variant, the float datatype is always 64 bits, and exposed as `float`.
We still have `real_t` which is the datatype that can change from 32 to 64
bits depending on a compile flag (not entirely working right now, but that's
the idea). It affects math related datatypes and code only.
Neither Variant nor PackedArray make use of real_t, which is only intended
for math precision, so the term is removed from there to keep only float.
2020-02-24 19:20:53 +01:00
|
|
|
MAKE_TYPE_INFO(PackedInt32Array, Variant::PACKED_INT32_ARRAY)
|
|
|
|
MAKE_TYPE_INFO(PackedInt64Array, Variant::PACKED_INT64_ARRAY)
|
|
|
|
MAKE_TYPE_INFO(PackedFloat32Array, Variant::PACKED_FLOAT32_ARRAY)
|
|
|
|
MAKE_TYPE_INFO(PackedFloat64Array, Variant::PACKED_FLOAT64_ARRAY)
|
2020-02-17 22:06:54 +01:00
|
|
|
MAKE_TYPE_INFO(PackedStringArray, Variant::PACKED_STRING_ARRAY)
|
|
|
|
MAKE_TYPE_INFO(PackedVector2Array, Variant::PACKED_VECTOR2_ARRAY)
|
|
|
|
MAKE_TYPE_INFO(PackedVector3Array, Variant::PACKED_VECTOR3_ARRAY)
|
|
|
|
MAKE_TYPE_INFO(PackedColorArray, Variant::PACKED_COLOR_ARRAY)
|
2017-08-09 11:54:27 +02:00
|
|
|
|
2021-05-06 02:48:18 +02:00
|
|
|
MAKE_TYPE_INFO(IPAddress, Variant::STRING)
|
2017-08-09 11:54:27 +02:00
|
|
|
|
2020-02-12 18:24:06 +01:00
|
|
|
//objectID
|
|
|
|
template <>
|
|
|
|
struct GetTypeInfo<ObjectID> {
|
|
|
|
static const Variant::Type VARIANT_TYPE = Variant::INT;
|
2020-03-14 19:20:17 +01:00
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_INT_IS_UINT64;
|
2020-02-12 18:24:06 +01:00
|
|
|
static inline PropertyInfo get_class_info() {
|
|
|
|
return PropertyInfo(Variant::INT, String(), PROPERTY_HINT_INT_IS_OBJECTID);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-08-24 00:10:32 +02:00
|
|
|
//for variant
|
2017-08-29 07:15:46 +02:00
|
|
|
template <>
|
2017-08-24 00:10:32 +02:00
|
|
|
struct GetTypeInfo<Variant> {
|
2017-09-07 08:47:08 +02:00
|
|
|
static const Variant::Type VARIANT_TYPE = Variant::NIL;
|
2019-04-25 20:24:48 +02:00
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE;
|
2017-08-24 00:10:32 +02:00
|
|
|
static inline PropertyInfo get_class_info() {
|
2017-08-29 07:15:46 +02:00
|
|
|
return PropertyInfo(Variant::NIL, String(), PROPERTY_HINT_NONE, String(), PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NIL_IS_VARIANT);
|
2017-08-24 00:10:32 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-08-29 07:15:46 +02:00
|
|
|
template <>
|
|
|
|
struct GetTypeInfo<const Variant &> {
|
2017-09-07 08:47:08 +02:00
|
|
|
static const Variant::Type VARIANT_TYPE = Variant::NIL;
|
2019-04-25 20:24:48 +02:00
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE;
|
2017-08-24 00:10:32 +02:00
|
|
|
static inline PropertyInfo get_class_info() {
|
2017-08-29 07:15:46 +02:00
|
|
|
return PropertyInfo(Variant::NIL, String(), PROPERTY_HINT_NONE, String(), PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NIL_IS_VARIANT);
|
2017-08-24 00:10:32 +02:00
|
|
|
}
|
|
|
|
};
|
2017-08-09 11:54:27 +02:00
|
|
|
|
2019-04-25 20:24:48 +02:00
|
|
|
#define MAKE_TEMPLATE_TYPE_INFO(m_template, m_type, m_var_type) \
|
|
|
|
template <> \
|
2020-03-17 07:33:00 +01:00
|
|
|
struct GetTypeInfo<m_template<m_type>> { \
|
2019-04-25 20:24:48 +02:00
|
|
|
static const Variant::Type VARIANT_TYPE = m_var_type; \
|
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE; \
|
|
|
|
static inline PropertyInfo get_class_info() { \
|
|
|
|
return PropertyInfo(VARIANT_TYPE, String()); \
|
|
|
|
} \
|
|
|
|
}; \
|
|
|
|
template <> \
|
|
|
|
struct GetTypeInfo<const m_template<m_type> &> { \
|
|
|
|
static const Variant::Type VARIANT_TYPE = m_var_type; \
|
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE; \
|
|
|
|
static inline PropertyInfo get_class_info() { \
|
|
|
|
return PropertyInfo(VARIANT_TYPE, String()); \
|
|
|
|
} \
|
2017-08-09 11:54:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
MAKE_TEMPLATE_TYPE_INFO(Vector, Variant, Variant::ARRAY)
|
|
|
|
MAKE_TEMPLATE_TYPE_INFO(Vector, RID, Variant::ARRAY)
|
|
|
|
MAKE_TEMPLATE_TYPE_INFO(Vector, Plane, Variant::ARRAY)
|
2020-02-17 22:06:54 +01:00
|
|
|
MAKE_TEMPLATE_TYPE_INFO(Vector, Face3, Variant::PACKED_VECTOR3_ARRAY)
|
|
|
|
MAKE_TEMPLATE_TYPE_INFO(Vector, StringName, Variant::PACKED_STRING_ARRAY)
|
|
|
|
|
2017-08-09 11:54:27 +02:00
|
|
|
template <typename T>
|
|
|
|
struct GetTypeInfo<T *, typename EnableIf<TypeInherits<Object, T>::value>::type> {
|
2017-09-07 08:47:08 +02:00
|
|
|
static const Variant::Type VARIANT_TYPE = Variant::OBJECT;
|
2019-04-25 20:24:48 +02:00
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE;
|
2017-08-24 00:10:32 +02:00
|
|
|
static inline PropertyInfo get_class_info() {
|
|
|
|
return PropertyInfo(StringName(T::get_class_static()));
|
2017-08-09 11:54:27 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
struct GetTypeInfo<const T *, typename EnableIf<TypeInherits<Object, T>::value>::type> {
|
2017-09-07 08:47:08 +02:00
|
|
|
static const Variant::Type VARIANT_TYPE = Variant::OBJECT;
|
2019-04-25 20:24:48 +02:00
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE;
|
2017-08-24 00:10:32 +02:00
|
|
|
static inline PropertyInfo get_class_info() {
|
|
|
|
return PropertyInfo(StringName(T::get_class_static()));
|
2017-08-09 11:54:27 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2021-08-13 16:46:14 +02:00
|
|
|
namespace godot {
|
|
|
|
namespace details {
|
|
|
|
inline String enum_qualified_name_to_class_info_name(const String &p_qualified_name) {
|
|
|
|
Vector<String> parts = p_qualified_name.split("::", false);
|
|
|
|
if (parts.size() <= 2)
|
|
|
|
return String(".").join(parts);
|
|
|
|
// Contains namespace. We only want the class and enum names.
|
|
|
|
return parts[parts.size() - 2] + "." + parts[parts.size() - 1];
|
|
|
|
}
|
|
|
|
} // namespace details
|
|
|
|
} // namespace godot
|
|
|
|
|
|
|
|
#define TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, m_impl) \
|
|
|
|
template <> \
|
|
|
|
struct GetTypeInfo<m_impl> { \
|
|
|
|
static const Variant::Type VARIANT_TYPE = Variant::INT; \
|
|
|
|
static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE; \
|
|
|
|
static inline PropertyInfo get_class_info() { \
|
|
|
|
return PropertyInfo(Variant::INT, String(), PROPERTY_HINT_NONE, String(), PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_CLASS_IS_ENUM, \
|
|
|
|
godot::details::enum_qualified_name_to_class_info_name(String(#m_enum))); \
|
|
|
|
} \
|
2017-08-20 17:45:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#define MAKE_ENUM_TYPE_INFO(m_enum) \
|
|
|
|
TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, m_enum) \
|
|
|
|
TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, m_enum const) \
|
|
|
|
TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, m_enum &) \
|
|
|
|
TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, const m_enum &)
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
inline StringName __constant_get_enum_name(T param, const String &p_constant) {
|
2020-05-14 16:41:43 +02:00
|
|
|
if (GetTypeInfo<T>::VARIANT_TYPE == Variant::NIL) {
|
2019-11-06 17:03:04 +01:00
|
|
|
ERR_PRINT("Missing VARIANT_ENUM_CAST for constant's enum: " + p_constant);
|
2020-05-14 16:41:43 +02:00
|
|
|
}
|
2017-08-24 00:10:32 +02:00
|
|
|
return GetTypeInfo<T>::get_class_info().class_name;
|
2017-08-20 17:45:01 +02:00
|
|
|
}
|
|
|
|
|
2019-07-21 23:25:44 +02:00
|
|
|
#define CLASS_INFO(m_type) (GetTypeInfo<m_type *>::get_class_info())
|
2017-08-29 07:15:46 +02:00
|
|
|
|
2020-03-25 11:10:34 +01:00
|
|
|
#endif // TYPE_INFO_H
|