#define stringer_helper(arg) #arg #define stringer(arg) stringer_helper(arg) #define version 1 #define myapp "lala " + stringer(version)
但得到错误:
Illegal character in input file: '#' (0x23)
如何将数字定义附加到字符串定义?
Str
#define MyString "Text" #define MyInteger 666 #define MyVariable MyString + Str(MyInteger)