predefines issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux