mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
64f4b00d34
see testcase. We have to "empty" the macro-stack string on end_macro, as it may be 'tokstr_buf' which is going to be used twice in recursive invocations of macro_subst_tok. The uses aren't overlapping but the first one needs to be properly finalized.
13 lines
170 B
C
13 lines
170 B
C
#define TRACE(a,b,c) X a X b X c X
|
|
#define rettrue(x) 1
|
|
A rettrue(bla) B
|
|
TRACE(
|
|
ARG_1,
|
|
#if rettrue(bla)
|
|
ARG_2,
|
|
#else
|
|
ARG_2_wrong,
|
|
#endif
|
|
ARG_3
|
|
);
|