predefines issue

icegood icegood1980@gmail.com
Wed Feb 3 21:55:00 GMT 2010


Have code

#include 
#define sym_a sym_b
#define macro_over(x) x ## m
#define macro_over2(x) #x
int main()
{
  printf("%s\n", macro_over2(macro_over(sym_a)));
}


I see "macro_over(sym_a)" in output but expect to see sym_bm. 
Is it bug or i just smth missed?
-- 
View this message in context: http://old.nabble.com/predefines-issue-tp27443887p27443887.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list