/trunk/Examples/test-suite/naturalvar.i
# · Swig · 40 lines · 33 code · 7 blank · 0 comment · 0 complexity · bef3c2dddd3335bfd9f1989cb513d5e9 MD5 · raw file
- %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