File: enum_macro.i

package info (click to toggle)
renderdoc 1.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 79,584 kB
  • sloc: cpp: 491,671; ansic: 285,823; python: 12,617; java: 11,345; cs: 7,181; makefile: 6,703; yacc: 5,682; ruby: 4,648; perl: 3,461; php: 2,119; sh: 2,068; lisp: 1,835; tcl: 1,068; ml: 747; xml: 137
file content (99 lines) | stat: -rw-r--r-- 994 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
%module enum_macro

%inline %{

#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
/* comma at end of enumerator list [-Werror=pedantic] */
#pragma GCC diagnostic ignored "-Wpedantic"
#endif


enum Greeks1
{
#define GREEK1 -1
    alpha1=1,
    beta1,
    theta1
};

enum Greeks2
{
    alpha2 = 2,
#define GREEK2 -2
    beta2,
    theta2
};

enum Greeks3
{
    alpha3,
    beta3,
#define GREEK3 -3
    theta3
};

enum Greeks4
{
    alpha4 = 4,
    beta4 = 5,
    theta4 = 6
#define GREEK4 -4
};

enum Greeks5
{
#define GREEK5 -5
    alpha5,
    beta5,
};

enum Greeks6
{
    alpha6,
#define GREEK6 -6
    beta6,
};

enum Greeks7
{
    alpha7,
    beta7,
#define GREEK7 -7
};

enum Greeks8
{
#define GREEK8 -8
    theta8
};

enum Greeks9
{
    theta9
#define GREEK9 -9
};

enum Greeks10
{
#define GREEK10 -10
    theta10,
};

enum Greeks11
{
    theta11,
#define GREEK11 -11
};

typedef enum {
    theta12 = 0
#define GREEK12 -12
} Greeks12;
%}


enum Greeks13
{
#define GREEK13 -13
};