#include <stdio.h>
#define STR0(n) this_is_##n
#define STR1(R) #R
#define STR2(R) STR1(R)
#define STR3(x) STR2(STR0(x))
int main()
{
printf("%s\n", STR3(main.c));
return 0;
}
运行结果:
this_is_main.c