PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
Swig | 50 lines | 31 code | 16 blank | 3 comment | 0 complexity | 4fe9a83c0bf8cb968bbd7d3b2db32084 MD5 | raw file
 1%module xxx
 2
 3/* Test preprocessor comments and their effect on line number reporting on later errors */
 4
 5#define A1 1234
 6#define A2 1234 /*C comment*/
 7#define A3 1234
 8
 9%constant int aaa=;
10
11#define B1 1234
12#define B2 1234 //C++ comment
13#define B3 1234
14
15%constant int bbb=;
16
17#define C1 1234
18#define C2 1234 /*multiline
19C 
20comment */
21#define C3 1234
22
23%constant int ccc=;
24
25#define D1 1234
26#define /*C Comment*/ D2 1234
27#define D3 1234
28
29%constant int ddd=;
30
31#define E1 1234
32#/*C comment*/define E2 1234
33#define E3 1234
34
35%constant int eee=;
36
37#define F1 1234
38#define F2 1234 \
39// C comment
40#define F3 1234
41
42%constant int fff=;
43
44// Test macro ending in /, that is not a C comment terminator
45#define G1 1234
46#define G2 1234 /
47#define G3 1234
48
49%constant int ggg=;
50