PageRenderTime 61ms CodeModel.GetById 56ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/naturalvar.i

#
Swig | 40 lines | 33 code | 7 blank | 0 comment | 0 complexity | bef3c2dddd3335bfd9f1989cb513d5e9 MD5 | raw file
 1%module(naturalvar) naturalvar
 2
 3#ifdef __cplusplus
 4%include std_string.i
 5%inline 
 6{
 7  struct Foo
 8  {
 9  };
10  
11
12  Foo f;
13  std::string s;
14  struct Bar
15  {
16    int i;
17    Foo f;
18    std::string s;
19  };
20}
21#else
22%inline 
23{
24  typedef struct _foo
25  {
26  }Foo;
27  
28
29  Foo f;
30  char *s;
31  typedef struct _bar
32  {
33    int i;
34    Foo f;
35    char *s;
36  }  Bar;
37}
38#endif
39
40