aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/sbkconverter.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-11-15 18:28:53 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:33 -0300
commit862dd8faedc56e2abdec43eb9ba12b495d368a87 (patch)
tree44c86947d92d7a46a2f9022f4887c1b951f23c59 /libshiboken/sbkconverter.cpp
parentdf0ca8b2d02af3673960004e2ea547972ddf2b75 (diff)
Added a convenience method to check if a converter belongs to a wrapper type.
Diffstat (limited to 'libshiboken/sbkconverter.cpp')
-rw-r--r--libshiboken/sbkconverter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libshiboken/sbkconverter.cpp b/libshiboken/sbkconverter.cpp
index edd7097d3..6506d6e5a 100644
--- a/libshiboken/sbkconverter.cpp
+++ b/libshiboken/sbkconverter.cpp
@@ -474,6 +474,11 @@ bool pythonTypeIsObjectType(SbkConverter* converter)
return converter->pointerToPython && !converter->copyToPython;
}
+bool pythonTypeIsWrapperType(SbkConverter* converter)
+{
+ return converter->pointerToPython;
+}
+
SpecificConverter::SpecificConverter(const char* typeName)
: m_type(InvalidConversion)
{