don't use Py_None directly nor &PyType_Type

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-04 08:50:00 +00:00
commit 922d58ac19
9 changed files with 67 additions and 46 deletions

View file

@ -6,8 +6,7 @@
if ($1) {
$result = SWIG_From(int)(*$1);
} else {
Py_INCREF(Py_None);
$result = Py_None;
$result = SWIG_Py_Void();
}
}
@ -30,8 +29,7 @@
if ($1) {
$result = SWIG_From(std::string)(*$1);
} else {
Py_INCREF(Py_None);
$result = Py_None;
$result = SWIG_Py_Void();
}
}