[Python] Fix generated code for IBM's C++ compiler on AIX (patch

from Goeran Uddeborg in SF#1928048).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2008-04-24 12:26:29 +00:00
commit 85f02c4ba4
3 changed files with 11 additions and 7 deletions

View file

@ -111,7 +111,7 @@ namespace swig {
int res = asval(obj, &v);
if (!obj || !SWIG_IsOK(res)) {
if (!PyErr_Occurred()) {
%type_error(swig::type_name<Type>());
::%type_error(swig::type_name<Type>());
}
if (throw_error) throw std::invalid_argument("bad type");
}