summaryrefslogtreecommitdiffstats
path: root/libshiboken
diff options
context:
space:
mode:
Diffstat (limited to 'libshiboken')
-rw-r--r--libshiboken/sbkconverter.cpp5
-rw-r--r--libshiboken/sbkconverter.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/libshiboken/sbkconverter.cpp b/libshiboken/sbkconverter.cpp
index edd7097d..6506d6e5 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)
{
diff --git a/libshiboken/sbkconverter.h b/libshiboken/sbkconverter.h
index 41126786..e0768d63 100644
--- a/libshiboken/sbkconverter.h
+++ b/libshiboken/sbkconverter.h
@@ -291,6 +291,9 @@ LIBSHIBOKEN_API bool pythonTypeIsValueType(SbkConverter* converter);
/// Returns true if the Python type associated with the converter is an object type.
LIBSHIBOKEN_API bool pythonTypeIsObjectType(SbkConverter* converter);
+/// Returns true if the Python type associated with the converter is a wrapper type.
+LIBSHIBOKEN_API bool pythonTypeIsWrapperType(SbkConverter* converter);
+
#define SBK_PY_LONG_LONG_IDX 0
#define SBK_BOOL_IDX 1
#define SBK_CHAR_IDX 2