18 lines
227 B
OpenEdge ABL
18 lines
227 B
OpenEdge ABL
|
|
// Based on https://github.com/swig/swig/issues/339 .
|
||
|
|
|
||
|
|
%module inherit_member
|
||
|
|
|
||
|
|
%include <std_string.i>
|
||
|
|
|
||
|
|
%inline %{
|
||
|
|
|
||
|
|
struct parent_class {
|
||
|
|
std::string pvar;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct child : public parent_class {
|
||
|
|
std::string cvar;
|
||
|
|
};
|
||
|
|
|
||
|
|
%}
|