diff options
| author | untodesu <kirill@untode.su> | 2025-09-11 13:48:31 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-09-11 13:48:31 +0500 |
| commit | aaed751bf4430bf4b9b30cef532b8753b9f639ce (patch) | |
| tree | 16bc751c272ba27ad53ec48dbdd3a6d9e6a8d4c2 /core/version.cc.in | |
| parent | 96bd73ae020ecca1f94698744c77498a89ad19f7 (diff) | |
| download | voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.tar.bz2 voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.zip | |
Replace most of C strings with string_view
Diffstat (limited to 'core/version.cc.in')
| -rw-r--r-- | core/version.cc.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/version.cc.in b/core/version.cc.in index 0c255c9..a4689d7 100644 --- a/core/version.cc.in +++ b/core/version.cc.in @@ -3,10 +3,10 @@ #include "core/version.hh" // clang-format off -const unsigned long project_version_major = ${PROJECT_VERSION_MAJOR}; -const unsigned long project_version_minor = ${PROJECT_VERSION_MINOR}; -const unsigned long project_version_patch = ${PROJECT_VERSION_PATCH}; -const unsigned long project_version_tweak = ${PROJECT_VERSION_TWEAK}; +const unsigned long version::major = ${PROJECT_VERSION_MAJOR}; +const unsigned long version::minor = ${PROJECT_VERSION_MINOR}; +const unsigned long version::patch = ${PROJECT_VERSION_PATCH}; // clang-format on -const char* project_version_string = "${PROJECT_VERSION}"; +const std::string_view version::commit = "${GIT_COMMIT_HASH}"; +const std::string_view version::semver = "${PROJECT_VERSION}"; |
