add SWIG_TYPECHECK_SWIGOBJECT to resolve simple overload functions as Graph(int i)/Graph(PyObject* p)

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-03-01 23:30:37 +00:00
commit efaac02bd2
2 changed files with 4 additions and 1 deletions

View file

@ -566,6 +566,9 @@ namespace std {
%define SWIG_TYPECHECK_CHAR_PTR 2130 %enddef
%define SWIG_TYPECHECK_SWIGOBJECT 5000 %enddef
/* -----------------------------------------------------------------------------
* Runtime code
* ----------------------------------------------------------------------------- */

View file

@ -18,7 +18,7 @@
%set_output(*$1);
}
%typecheck(SWIG_TYPECHECK_POINTER) SWIG_Object "$1 = ($input != 0);";
%typecheck(SWIG_TYPECHECK_SWIGOBJECT) SWIG_Object "$1 = ($input != 0);";
%typemap(throws,noblock=1) SWIG_Object {
%raise($1, "$type", 0);