Fix Python directorin typemap for PyObject *
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e167400a29
commit
ff6b144f30
4 changed files with 24 additions and 2 deletions
18
Examples/test-suite/python_director.i
Normal file
18
Examples/test-suite/python_director.i
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
%module(directors="1") python_director
|
||||
|
||||
%feature("director");
|
||||
%inline %{
|
||||
class IFactoryFuncs {
|
||||
public:
|
||||
IFactoryFuncs() {}
|
||||
virtual ~IFactoryFuncs() {}
|
||||
|
||||
virtual PyObject * process(PyObject *pyobj) {
|
||||
return pyobj;
|
||||
}
|
||||
|
||||
void process_again(const PyObject *& pyobj) {
|
||||
}
|
||||
};
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue