From 7d1b3c5df2eab1d42179332d467d5756aefed587 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Wed, 14 Jan 2015 02:44:09 +0100 Subject: Implemented attaching Methods and Property information to Types (this will later allow script engines to access these methods). --- test/core/managed/ManagedTest.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/core/managed/ManagedTest.cpp') 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 Type1("Type1"); -static const Rtti Type2("Type2"); -static const Rtti Type3("Type3", {&Type1}); -static const Rtti Type4("Type4", {&Type3, &Type2}); +static const Rtti Type1 = RttiBuilder{"Type1"}; +static const Rtti Type2 = RttiBuilder{"Type2"}; +static const Rtti Type3 = RttiBuilder{"Type3"}.parent(&Type1); +static const Rtti Type4 = + RttiBuilder{"Type4"}.parent({&Type3, &Type2}); TEST(Managed, type) { -- cgit v1.2.3