aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-04-30 10:49:52 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-04-30 18:36:40 -0300
commit425fd9ef6e65aa1c951e761d33ef1cbcd3571c22 (patch)
tree0ef86d00fc43a6801505d9ca0dd3785e99dae8d5 /tests/samplebinding/typesystem_sample.xml
parent60c2c6adecf05648e2938995f7f5c6969303d0ab (diff)
Added tests for user added functions declared inside namespaces.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
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 38311bd7c..3b0eb9069 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -95,6 +95,11 @@
</conversion-rule>
</modify-argument>
</modify-function>
+ <add-function signature="ImInsideANamespace(int, int)" return-type="int">
+ <inject-code class="target">
+ %PYARG_0 = %CONVERTTOPYTHON[int](%1 + %2);
+ </inject-code>
+ </add-function>
</namespace-type>
<value-type name="SampleNamespace::SomeClass" />