PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/errors/pp_macro_expansion_multiline.i

#
Swig | 32 lines | 24 code | 8 blank | 0 comment | 0 complexity | 73023b30b24634940a2a55c1b14f3192 MD5 | raw file
 1%module xxx
 2// Testing macros split over multiple lines - ensure the warning message for the ignored functions contain the correct line numbering
 3
 4#define MYMACRO(NAME, A, B, C) void NAME(int A, int B, int C);
 5
 6MYMACRO(funk, x,
 7y,
 8
 9z
10)
11
12void foo(int *);
13void foo(const int *);
14
15%define MYSWIGMACRO(A, B, C)
16MYMACRO(funk1, 
17        AA,
18        BB,
19        CC)
20MYMACRO(funk2, 
21        AA, 
22        BB, 
23        CC)
24%enddef
25
26MYSWIGMACRO(xx,
27 yy,
28 zz)
29
30void bar(int *);
31void bar(const int *);
32