fix self-referential token pasting
This commit is contained in:
@ -103,6 +103,10 @@ int isid(int c);
|
||||
#define HIGHLOW "hello"
|
||||
#define LOW LOW ", world"
|
||||
|
||||
static int onetwothree = 123;
|
||||
#define onetwothree4 onetwothree
|
||||
#define onetwothree xglue(onetwothree,4)
|
||||
|
||||
#define min(a, b) ((a) < (b) ? (a) : (b))
|
||||
|
||||
#ifdef C99_MACROS
|
||||
@ -155,6 +159,8 @@ void macro_test(void)
|
||||
printf("s4=%s\n", str(a1));
|
||||
printf("B3=%d\n", B3);
|
||||
|
||||
printf("onetwothree=%d\n", onetwothree);
|
||||
|
||||
#ifdef A
|
||||
printf("A defined\n");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user