diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-12-09 19:00:11 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:26 -0300 |
commit | cd110ab3f4f912e2f9e400909f2d3d90abbb9d60 (patch) | |
tree | eca46f03cda305638ee154bba1bca81fbe26f49a /tests/libsample | |
parent | 26e008d9b3135cdeedfb6cd2f36b3369d1fc7c71 (diff) |
Implemented PSEP 0106.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Paulo Alcantra <pcacjr@gmail.com>
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/objecttype.cpp | 6 | ||||
-rw-r--r-- | tests/libsample/objecttype.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/libsample/objecttype.cpp b/tests/libsample/objecttype.cpp index e4fce71e3..c253c610f 100644 --- a/tests/libsample/objecttype.cpp +++ b/tests/libsample/objecttype.cpp @@ -283,3 +283,9 @@ ObjectType* ObjectType::createChild(ObjectType* parent) { return new ObjectType(parent); } + +std::size_t ObjectType::createObjectType() +{ + void* addr = new ObjectType(); + return (std::size_t) addr; +} diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h index f032a09f8..84812a8d6 100644 --- a/tests/libsample/objecttype.h +++ b/tests/libsample/objecttype.h @@ -106,6 +106,7 @@ public: virtual bool isPython() { return false; } void callVirtualCreateChild(); virtual ObjectType* createChild(ObjectType* parent); + static std::size_t createObjectType(); //return a parent from C++ ObjectType* getCppParent() { |