#define __A(v) abcd#v
#define __B(v) abcd##v
#define __C(v) v##abcd
这三个区别是:
__A(test1)展开后变成: abcd "test1" (加双引号并插入空格)
__B(test2)展开后变成: abcdtest2
__C(test3)展开后变成: test3abcd
'#' in Gcc
Mar022009
Subscribe to:
Post Comments (Atom)
#define __A(v) abcd#v
#define __B(v) abcd##v
#define __C(v) v##abcd
这三个区别是:
__A(test1)展开后变成: abcd "test1" (加双引号并插入空格)
__B(test2)展开后变成: abcdtest2
__C(test3)展开后变成: test3abcd
Copyright © 2010 A personal web log, by karpar
Icons & Wordpress Theme by N.Design | Blogger Templates by Blog and Web
0 评论: (+add yours?)
Post a Comment