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.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml
new file mode 100644
index 000000000..a7e209738
--- /dev/null
+++ b/PySide/typesystem_templates.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<typesystem>
+ <!-- Templates to fix bool* parameters -->
+
+ <template name="only_bool*_fix">
+ bool ok_;
+ %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_);
+ %0 = PyTuple_Pack(2, %CONVERTTOPYTHON[%RETURN_TYPE](retval_), %CONVERTTOPYTHON[%RETURN_TYPE](ok_));
+ </template>
+
+</typesystem>
+