mirror of https://github.com/swig/swig.git
21 lines
448 B
OpenEdge ABL
21 lines
448 B
OpenEdge ABL
%module python_pyiterator_rename_b
|
|
|
|
// Per-module rename to avoid SwigPyIterator type collision across modules
|
|
#define SwigPyIterator SwigPyIterator_python_pyiterator_rename_b
|
|
|
|
%include <std_vector.i>
|
|
%template(VectorInt) std::vector<int>;
|
|
|
|
%inline %{
|
|
class VecHolder_b {
|
|
public:
|
|
std::vector<int> data;
|
|
VecHolder_b() {
|
|
data.push_back(40);
|
|
data.push_back(50);
|
|
data.push_back(60);
|
|
}
|
|
std::vector<int>& get() { return data; }
|
|
};
|
|
%}
|