swig/Examples/test-suite/naturalvar.i
Marcelo Matus 43573a8d24 another case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8116 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 22:41:05 +00:00

40 lines
362 B
OpenEdge ABL

%module(naturalvar) naturalvar
#ifdef __cplusplus
%include std_string.i
%inline
{
struct Foo
{
};
Foo f;
std::string s;
struct Bar
{
int i;
Foo f;
std::string s;
};
}
#else
%inline
{
typedef struct _foo
{
}Foo;
Foo f;
char *s;
typedef struct _bar
{
int i;
Foo f;
char *s;
} Bar;
}
#endif