summaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper.cpp
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-15 19:01:58 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-10-15 19:12:24 -0300
commit9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1 (patch)
tree6a99d67a22e3754e164861faf82e555856e754ff /libshiboken/basewrapper.cpp
parentb548f03130cdd2aa7bdcb4bf00f5da8240fc78ee (diff)
downloadshiboken-9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1.tar.gz
shiboken-9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1.tar.xz
shiboken-9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1.zip
Fixed namespace lookup during the class generation.
fixes bug #414. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/basewrapper.cpp')
-rw-r--r--libshiboken/basewrapper.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index 7f7b8da8..2c1129b2 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -576,7 +576,11 @@ void setErrorAboutWrongArguments(PyObject* args, const char* funcName, const cha
for (int i = 0, max = PyTuple_GET_SIZE(args); i < max; ++i) {
if (i)
params += ", ";
- params += PyTuple_GET_ITEM(args, i)->ob_type->tp_name;
+ PyObject* arg = PyTuple_GET_ITEM(args, i);
+ if (PyCObject_Check(arg))
+ params += "pointer";
+ else
+ params += arg->ob_type->tp_name;
}
} else {
params = args->ob_type->tp_name;