swig/Examples/test-suite/global_vars.i
William S Fulton bee87a99fb Remove R explicit workaround
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:32:10 +00:00

31 lines
394 B
OpenEdge ABL

%module global_vars
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
%include std_string.i
%inline %{
struct A
{
int x;
};
std::string b;
A a;
A *ap;
const A *cap;
A &ar = a;
int x;
int *xp;
int& c_member = x;
void *vp;
enum Hello { Hi, Hola };
Hello h;
Hello *hp;
Hello &hr = h;
%}