aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-12-01 20:21:54 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-12-01 20:24:57 -0200
commitebb3ddc32fbab6793263652e9a92738678bbc310 (patch)
tree41aae1f85336aac5f7759f736af26aa0555835cf /tests
parentd7c654862dfcf12241484cb575b389f6cc541e69 (diff)
Do not try to write the C++ version of an argument when the argument type is a
custom type.
Diffstat (limited to 'tests')
-rw-r--r--tests/samplebinding/typesystem_sample.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index fc993ebdf..ba73f1f1e 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -182,7 +182,7 @@
</modify-function>
<add-function signature="dataTypeName(PyObject*)const" return-type="const char*">
<inject-code class="target" position="beginning">
- %0 = %CONVERTTOPYTHON[%RETURN_TYPE](%CPPSELF.%FUNCTION_NAME(%1));
+ %0 = %CONVERTTOPYTHON[%RETURN_TYPE](%CPPSELF.%FUNCTION_NAME(%PYARG_1));
</inject-code>
</add-function>
</value-type>
@@ -552,7 +552,7 @@
<modify-function signature="PointerHolder(void*)" remove="all"/>
<add-function signature="PointerHolder(PyObject*)">
<inject-code class="target" position="beginning">
- %0 = new %TYPE(%1);
+ %0 = new %TYPE(%PYARG_1);
</inject-code>
</add-function>
<modify-function signature="pointer() const">