aboutsummaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-06-21 15:57:56 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:15:26 -0300
commitac4534d9cf1ca7b3ab27ff32ebc71ef565fb05ad (patch)
tree92befc42f14f5f236a2ddb2451d514174109bca6 /generator
parent778a48ffa48a1a217981088e41937413fbf4f59b (diff)
Recognize more types on error messages pretty printing them.
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index ef019e9cc..f4649213b 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -1565,6 +1565,18 @@ void CppGenerator::writeErrorSection(QTextStream& s, OverloadData& overloadData)
strArg = argType->fullName();
if (strArg == "PyUnicode")
strArg = "unicode";
+ else if (strArg == "PyString")
+ strArg = "str";
+ else if (strArg == "PySequece")
+ strArg = "list";
+ else if (strArg == "PyTuple")
+ strArg = "tuple";
+ else if (strArg == "PyDict")
+ strArg = "dict";
+ else if (strArg == "PyObject")
+ strArg = "object";
+ else if (strArg == "PyCallable")
+ strArg = "callable";
else if (strArg == "uchar")
strArg = "buffer"; // This depends on an inject code to be true, but if it's not true
// the function wont work at all, so it must be true.