aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index c54da9899..fb133b516 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -45,6 +45,11 @@
<include file-name="map" location="global"/>
</container-type>
<container-type name="List" type="list" />
+ <add-function signature="cacheSize()" return-type="int">
+ <inject-code class="target">
+ %PYARG_0 = %CONVERTTOPYTHON[int](Shiboken::BindingManager::instance().getAllPyObjects().size());
+ </inject-code>
+ </add-function>
<function signature="sumComplexPair(std::pair&lt;Complex, Complex>)" />
<function signature="gimmeComplexList()" />