summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python_extranative.i
blob: 04361b3e6ef2a278ffefd56d409651f9afbec30c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%module(extranative="1") python_extranative

%include <std_vector.i>
%include <std_string.i>

%template(VectorString) std::vector<std::string>;

%inline %{
std::vector<std::string> make_vector_string() {
  std::vector<std::string> vs;
  vs.push_back("one");
  vs.push_back("two");
  return vs;
}
%}