swig/SWIG/Examples/test-suite/global_vars.i
Marcelo Matus a80aa7fe40 fix varin for ptr types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6909 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 20:07:16 +00:00

29 lines
274 B
OpenEdge ABL

%module global_vars
%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 = x;
void *vp;
enum Hello { Hi, Hola };
Hello h;
Hello *hp;
Hello &hr = h;
%}