summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/glcpp/tests/147-define-macro-no-space.c
blob: 9ef7f7cc769834dd373133aea7ec745814a4debb (plain)
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
/* The GLSL specification is not specific about how to handle a non-space
 * character separating a macro identifier from the replacement list. It says
 * only "as is standard for C++ preprocessors". GCC accepts these and warns of
 * "missing whitespace". So we'll accept these, (though we don't warn).
 *
 * Note: 'O' is intentionally omitted to leave room for "octothorpe" if we
 *       decide it should be legal to use a hash here, (in fact, hash has no
 *       legal use as the first token in a macro replacement list, but one
 *       could argue that that could still be allowed if the macro were never
 *       instantiated).
 */
#define A& ampersand
#define B! bang
#define C, comma
#define D/ divider
#define E= equals
#define F. full stop
#define G> greater than
#define H- hyphen
#define I+ incrementor
#define J[ JSON array
#define K} kurly brace?
#define L< less than
#define M{ moustache
#define N^ nose
#define P) parenthesis (right)
#define Q? question mark
#define R% ratio indicator
#define S] square bracket (right)
#define T~ tilde
#define U: umlaut?
#define V| vertical bar
#define W; wink
#define X* X (as multiplication)
A
B
C
D
E
F
G
H
I
J
K
L
M
N
P
Q
R
S
T
U
V
W
X