C/C++ 宏命令的神奇用法. 先看下面三条语句: #define Conn(x,y) x##y#define ToChar(x) #@x#define ToString(x) #x 1. ## 连接操作符##表示连接(token pasting, or token concatenation,merge two tokens into one while expanding macros).x##y表示什么?表示x连接y,举例说: int n = Conn(123,456…
1.Preprocessor Glue: The ## Operator 预处理连接符:##操作符 Like the # operator, the ## operator can be used in the replacement section of a function-like macro.Additionally, it can be used in the replacement section of an object-like macro. The ## operator co…