1
我串连使用这些宏我的全部应用程序版本:LLVM预编译串连问题
#define MAJOR 3
#define BUILD 432
#define CONCATENATE_DIRECT(s1, s2) s1##s2
#define CONCATENATE(s1, s2) CONCATENATE_DIRECT(s1, s2)
#define VERSION CONCATENATE(CONCATENATE(MAJOR, .), BUILD)
输出应该是3.432它完美地工作,直到我最近更新的Xcode 5和LLVM 5.1。 现在的输出是:3 ##。## 432