aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/typesystem_templates.xml
diff options
context:
space:
mode:
Diffstat (limited to 'PySide/typesystem_templates.xml')
-rw-r--r--PySide/typesystem_templates.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml
index 51ba3742e..ed0d6bdc9 100644
--- a/PySide/typesystem_templates.xml
+++ b/PySide/typesystem_templates.xml
@@ -196,6 +196,14 @@
%PYARG_0 = Shiboken::makeTuple(_ret, _arg);
</template>
+ <template name="fix_args,number*,number*">
+ $TYPE a, b;
+ PyThreadState* _save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS
+ %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &amp;a, &amp;b);
+ PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS
+ %PYARG_0 = Shiboken::makeTuple(a, b);
+ </template>
+
<template name="fix_virtual_method_return_value_and_bool*">
Shiboken::AutoDecRef _py_ret_(PySequence_GetItem(%PYARG_0, 0));
Shiboken::AutoDecRef _py_ok_(PySequence_GetItem(%PYARG_0, 1));