PageRenderTime 13ms CodeModel.GetById 11ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

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

#
Swig | 35 lines | 28 code | 7 blank | 0 comment | 0 complexity | 9895c3bab3db0a0753cb1fe6d7e2f111 MD5 | raw file
 1%module inctest
 2
 3 //
 4 // This test fails if swig is not able to include
 5 // the following two files:
 6 //
 7 //   'testdir/subdir1/hello.i'
 8 //   'testdir/subdir2/hello.i'
 9 //
10 // since they have the same basename 'hello', swig is only
11 // including one. This is not right, it must include both,
12 // as the well known compilers do.
13 //
14 // Also repeats the test for the import directive in subdirectories
15
16%include "testdir/test.i"
17
18
19// Bug #1162194
20%inline %{
21typedef struct {
22#include "inctest.h"
23} MY_TYPES;
24
25%}
26
27%{
28typedef struct {
29#include "inctest.h"
30} MY_THINGS;
31%}
32
33typedef struct {
34%include "inctest.h"
35} MY_THINGS;