我想要做:
#define VERSION XY123
#define PRODUCT MyApplication_VERSION
所以 PRODUCT 实际上是 MyApplication_XY123。我曾尝试使用合并运算符##,但成功有限......
#define VERSION XY123
#define PRODUCT MyApplication_##VERSION
=> MyApplication_VERSION
#define VERSION XY123
#define PRODUCT MyApplication_##(VERSION)
=> MyApplication_(XY123) - 关闭但不完全
我想要的可能吗?