Add version.{h,cpp}: Returning version info

这个提交包含在:
2021-10-03 23:01:19 +02:00
父节点 3d0fce590b
当前提交 fa5e75893f
共有 4 个文件被更改,包括 21 次插入5 次删除

11
version.cpp 普通文件
查看文件

@@ -0,0 +1,11 @@
#include "version.h"
std::string git_commit_id()
{
return std::string(GITCOMMIT);
}
std::string get_version_string()
{
return git_commit_id() + " Built: " + __DATE__ + " " + __TIME__;
}