adding Prabhu's 'weave' example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6768 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2ce0825686
commit
e54afae12d
5 changed files with 125 additions and 0 deletions
13
SWIG/Examples/python/weave/example.i
Normal file
13
SWIG/Examples/python/weave/example.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module(directors="1") example
|
||||
%feature("director");
|
||||
|
||||
%{
|
||||
#include "example.h"
|
||||
%}
|
||||
|
||||
%include "std_vector.i"
|
||||
|
||||
%include "example.h"
|
||||
|
||||
%template(VectorBar) std::vector<Bar*>;
|
||||
%template(VectorFoo) std::vector<Foo*>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue