swig/Examples/test-suite/li_implicit.i
William S Fulton 398ac5f01c Remove redundant Python options: -nocastmode -nodirvtable -noextranative -nofastproxy
Also remove redundant %module options: nocastmode, noextranative
Issue #1340
2018-12-18 19:51:32 +00:00

26 lines
338 B
OpenEdge ABL

%module li_implicit
// Tests nocastmode
#pragma SWIG nowarn=SWIGWARN_PP_CPP_WARNING
%include implicit.i
%inline
{
struct B { };
}
%implicit(A, int, double, B);
%inline
{
struct A
{
int ii;
A(int i) { ii = 1; }
A(double d) { ii = 2; }
A(const B& b) { ii = 3; }
};
int get(const A& a) { return a.ii; }
}