用 以数字开头的.thrift文件(615A.thrift)生成cpp文件,其中会生成615A_types.h,内容是
#ifndef 615A_TYPES_H
#define 615A_TYPES_H
。。。
#endif
编译报错:

参考:https://www.cnblogs.com/justinyo/archive/2013/03/13/2957350.html
宏定义不能以数字开头
探讨使用数字开头的.thrift文件生成cpp文件时遇到的编译错误问题,宏定义不能以数字开头,提供了解决方案。
用 以数字开头的.thrift文件(615A.thrift)生成cpp文件,其中会生成615A_types.h,内容是
#ifndef 615A_TYPES_H
#define 615A_TYPES_H
。。。
#endif
编译报错:

参考:https://www.cnblogs.com/justinyo/archive/2013/03/13/2957350.html
宏定义不能以数字开头
1368

被折叠的 条评论
为什么被折叠?