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:
parent
574fb19357
commit
efaac02bd2
2 changed files with 4 additions and 1 deletions
|
|
@ -566,6 +566,9 @@ namespace std {
|
|||
%define SWIG_TYPECHECK_CHAR_PTR 2130 %enddef
|
||||
|
||||
|
||||
%define SWIG_TYPECHECK_SWIGOBJECT 5000 %enddef
|
||||
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Runtime code
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue