|
Packit |
b40e2e |
/* e_25_6.t: Macro arguments are pre-expanded separately. */
|
|
Packit |
b40e2e |
|
|
Packit |
b40e2e |
#define sub( x, y) (x - y)
|
|
Packit |
b40e2e |
|
|
Packit |
b40e2e |
/* 25.6: */
|
|
Packit |
b40e2e |
#define head sub(
|
|
Packit |
b40e2e |
#define body(x,y) x,y
|
|
Packit |
b40e2e |
#define tail )
|
|
Packit |
b40e2e |
#define head_body_tail( a, b, c) a b c
|
|
Packit |
b40e2e |
/* "head" is once replaced to "sub(", then rescanning of "sub(" causes an
|
|
Packit |
b40e2e |
uncompleted macro call. Expansion of an argument should complete
|
|
Packit |
b40e2e |
within the argument. */
|
|
Packit |
b40e2e |
head_body_tail( head, body(a,b), tail);
|
|
Packit |
b40e2e |
|