From b8de1873b727e57ce627a3826e2fc7c3874a847d Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Fri, 19 Mar 2010 12:04:00 -0300 Subject: Adds a test for a method with modifications and custom conversion rules. The test function does nothing in fact, it is there just to cause a situation that could cause a compilation problem if the generator is not working as it should. In other words if it compiles, then it is ok. :) The added method was a dummy clone of a similar QPixmap.loadFromData method signature that prevented QtGui from compiling properly. Reviewed by Hugo Parente Reviewed by Anderson Lizardo --- tests/samplebinding/typesystem_sample.xml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'tests/samplebinding') diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml index 05306f68c..eabc413f9 100644 --- a/tests/samplebinding/typesystem_sample.xml +++ b/tests/samplebinding/typesystem_sample.xml @@ -7,6 +7,7 @@ + @@ -55,7 +56,22 @@ - + + + + + + unsigned char* %out = reinterpret_cast<unsigned char*>(PyString_AS_STRING(%PYARG_1)); + + + + + + unsigned int %out = static_cast<unsigned int>(PyString_GET_SIZE(%PYARG_1)); + + + + -- cgit v1.2.3