File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 29
29
// [ Rtti interface ]
30
30
// [-------------------------------------------------------]
31
31
be_begin_class (Object, core)
32
+ be_default_constructor()
32
33
be_end_class()
33
34
34
35
Original file line number Diff line number Diff line change @@ -102,13 +102,26 @@ struct Register_##NAMESPACE_##CLASS { \
102
102
}; \
103
103
static Register_##NAMESPACE_##CLASS NAMESPACE_##CLASS_declare_class_register; \
104
104
void NAMESPACE::CLASS::register_reflection () { \
105
+ typedef NAMESPACE::CLASS _CLASS; \
105
106
core::Class::declare<NAMESPACE::CLASS>(#NAMESPACE" ::" #CLASS) \
106
107
107
108
108
109
#define be_end_class () \
109
110
;}
110
111
111
112
113
+ #define be_base_class (NAME ) \
114
+ .base(#NAME)
115
+
116
+
117
+ #define be_default_constructor () \
118
+ .constructor(new core::Constructor<_CLASS>())
119
+
120
+
121
+ #define be_constructor (...) \
122
+ .constructor(new core::Constructor<_CLASS, __VA_ARGS__>())
123
+
124
+
112
125
#define __be_declare_enum (ENUM ) \
113
126
template <> struct core ::StaticTypeInfo<ENUM> { \
114
127
static core::TypeInfo* get () { \
You can’t perform that action at this time.
0 commit comments