M
marv andersen
Hi,
What should the following produce after preprocessing
#define y(x) x
#define x(a) y(a
x(1) x(2)))
I think we should get '1 2', but cpp on linux seems to think this
expands to an invalid use of y? My reasoning is that we should get
the following:
y(1 x(2)))
y(1 y(2))
y(1 2)
1 2
.... but maybe I'm missing something.
Any help much appreciated!
Marv
What should the following produce after preprocessing
#define y(x) x
#define x(a) y(a
x(1) x(2)))
I think we should get '1 2', but cpp on linux seems to think this
expands to an invalid use of y? My reasoning is that we should get
the following:
y(1 x(2)))
y(1 y(2))
y(1 2)
1 2
.... but maybe I'm missing something.
Any help much appreciated!
Marv