diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-14 02:44:09 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-14 02:44:09 +0100 |
commit | 7d1b3c5df2eab1d42179332d467d5756aefed587 (patch) | |
tree | 6a44220ea0781a686d6c7b513ca914ba1ce6e919 /test/core/managed/ManagedTest.cpp | |
parent | 92c1f8d9c933d13a8f038565587c83abae28711e (diff) |
Implemented attaching Methods and Property information to Types (this will later allow script engines to access these methods).
Diffstat (limited to 'test/core/managed/ManagedTest.cpp')
-rw-r--r-- | test/core/managed/ManagedTest.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/core/managed/ManagedTest.cpp b/test/core/managed/ManagedTest.cpp index a943f5d..0391738 100644 --- a/test/core/managed/ManagedTest.cpp +++ b/test/core/managed/ManagedTest.cpp @@ -76,10 +76,11 @@ class TypeTestManaged5 : public Managed { using Managed::Managed; }; -static const Rtti<TypeTestManaged1> Type1("Type1"); -static const Rtti<TypeTestManaged2> Type2("Type2"); -static const Rtti<TypeTestManaged3> Type3("Type3", {&Type1}); -static const Rtti<TypeTestManaged4> Type4("Type4", {&Type3, &Type2}); +static const Rtti<TypeTestManaged1> Type1 = RttiBuilder{"Type1"}; +static const Rtti<TypeTestManaged2> Type2 = RttiBuilder{"Type2"}; +static const Rtti<TypeTestManaged3> Type3 = RttiBuilder{"Type3"}.parent(&Type1); +static const Rtti<TypeTestManaged4> Type4 = + RttiBuilder{"Type4"}.parent({&Type3, &Type2}); TEST(Managed, type) { |