From c8892e123c0f4512e7ecd78b85d499b02b31e1e4 Mon Sep 17 00:00:00 2001 From: Lauro Neto Date: Tue, 20 Jul 2010 17:57:08 -0300 Subject: Inject code for Point.__reduce__ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Renato Araújo Luciano Wolf --- tests/samplebinding/typesystem_sample.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/samplebinding') diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml index 4816b8246..84396c060 100644 --- a/tests/samplebinding/typesystem_sample.xml +++ b/tests/samplebinding/typesystem_sample.xml @@ -951,6 +951,17 @@ %PYARG_0 = PyString_FromFormat("<Point object at %p: (%d.%d, %d.%d)>", %CPPSELF, x1, x2, y1, y2); + + + + PyObject *type = PyObject_Type(%PYSELF); + PyObject *args = NULL; + + args = Py_BuildValue("(dd)", %CPPSELF.x(), %CPPSELF.y()); + + %PYARG_0 = Py_BuildValue("(OO)", type, args); + + -- cgit v1.2.3