mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-16 03:18:06 +02:00
The specification says that redefining a macro is an error, unless the new definitions is identical to the old one, (identical replacement lists but ignoring differing amounts of whitespace).
17 lines
224 B
C
17 lines
224 B
C
#define x y
|
|
#define x z
|
|
|
|
#define abc 123
|
|
#define abc() 123
|
|
|
|
#define foo() bar
|
|
#define foo(x) bar
|
|
|
|
#define bar() baz
|
|
#define bar baz
|
|
|
|
#define biff(a,b) a+b
|
|
#define biff(a,b,c) a+b
|
|
|
|
#define oper(a,b) a+b
|
|
#define oper(a,b) a*b
|