27 lines
722 B
C
27 lines
722 B
C
#ifndef VERSION_H
|
|
#define VERSION_H
|
|
|
|
// 版本字符串
|
|
#define STATORPOSITION_VERSION_STRING "1.0.0"
|
|
#define STATORPOSITION_BUILD_STRING "1"
|
|
#define STATORPOSITION_FULL_VERSION_STRING "V" STATORPOSITION_VERSION_STRING "_" STATORPOSITION_BUILD_STRING
|
|
|
|
// 构建日期
|
|
#define STATORPOSITION_BUILD_DATE __DATE__
|
|
#define STATORPOSITION_BUILD_TIME __TIME__
|
|
|
|
// 获取版本信息的便捷函数
|
|
inline const char* GetStatorPositionVersion() {
|
|
return STATORPOSITION_VERSION_STRING;
|
|
}
|
|
|
|
inline const char* GetStatorPositionBuild() {
|
|
return STATORPOSITION_BUILD_STRING;
|
|
}
|
|
|
|
inline const char* GetStatorPositionFullVersion() {
|
|
return STATORPOSITION_FULL_VERSION_STRING;
|
|
}
|
|
|
|
#endif // VERSION_H
|