#ifndef __VERSION_H__
#define __VERSION_H__
#define STRING_HELPER(str) #str
#define STRING(x) STRING_HELPER(x)
#define VERSION_MAJOR 1
#define VERSION_MINOR 0
#define VERSION_BUILD 1
#define MAIN_VERSION \
STRING(VERSION_MAJOR) "." \
STRING(VERSION_MINOR) "." \
STRING(VERSION_BUILD)
#ifndef GIT_VERSION
#define GIT_VERSION 0000000
#endif
#define VERSION_STR MAIN_VERSION "-" STRING(GIT_VERSION)
#endif // !__VERSION_H__
版本控制头文件
最新推荐文章于 2021-06-03 17:48:26 发布