/trunk/Examples/test-suite/naturalvar.i
Swig | 40 lines | 33 code | 7 blank | 0 comment | 0 complexity | bef3c2dddd3335bfd9f1989cb513d5e9 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %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
-