metamacro_concat
這個宏也很簡單,連接而已:
/**
* Returns A and B concatenated after full macro expansion.
*/
#define metamacro_concat(A, B) \
metamacro_concat_(A, B)
#define metamacro_concat_(A, B) A ## B
釋義:拼接A和B,即AB
示例:
NSString *str = @"Hello china!";
NSLog(@"%@", metamacro_concat_(st, r)); // Hello china!