From 91a2dbd2e84e653ba0e0b36f4c46bfc23014e29b Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Sat, 13 Aug 2011 11:51:52 -0300 Subject: Added a method modification test dealing with code injection and user's primitive type. The inject code has a %CONVERTTOPYTHON that receives an user's primitive type. --- tests/libsample/modifications.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/libsample/modifications.h') diff --git a/tests/libsample/modifications.h b/tests/libsample/modifications.h index 2acffa406..f17261473 100644 --- a/tests/libsample/modifications.h +++ b/tests/libsample/modifications.h @@ -26,6 +26,7 @@ #include "libsamplemacros.h" #include #include "point.h" +#include "oddbool.h" class ObjectType; @@ -109,6 +110,9 @@ public: bool nonConversionRuleForArgumentWithDefaultValue(ObjectType** object = 0); ObjectType* getObject() const { return m_object; } + // Inject code with a %CONVERTTOPYTHON that receives an user's primitive type. + static inline OddBool passOddBool(OddBool ob) { return ob; } + private: ObjectType* m_object; }; -- cgit v1.2.3