diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-08-13 11:51:52 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:11 -0300 |
commit | 91a2dbd2e84e653ba0e0b36f4c46bfc23014e29b (patch) | |
tree | ecfc92c90ffe3c92282d06444f9cd4e26cdfc269 /tests/libsample/modifications.h | |
parent | e5d7ccddfee37eb10e3c594f96bdddb49864c340 (diff) |
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.
Diffstat (limited to 'tests/libsample/modifications.h')
-rw-r--r-- | tests/libsample/modifications.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <utility> #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; }; |