summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python_director.i
blob: c85113afa9fa8e7e548af5822b7a07a87d4dffd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) {
    }
  };
%}