diff options
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r-- | tests/samplebinding/typesystem_sample.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml index 56bfcfee3..e1837bbd3 100644 --- a/tests/samplebinding/typesystem_sample.xml +++ b/tests/samplebinding/typesystem_sample.xml @@ -1103,6 +1103,19 @@ %PYARG_0 = Py_BuildValue("(OO)", type, args); </inject-code> </add-function> + <add-function signature="operator-(PyUnicode)"> + <inject-code> + %PYARG_0 = arg; + Py_INCREF(arg); + </inject-code> + </add-function> + <!-- A reverse operator --> + <add-function signature="operator-(PyUnicode, Point)"> + <inject-code> + %PYARG_0 = arg; + Py_INCREF(arg); + </inject-code> + </add-function> </value-type> <value-type name="PointF"> |