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.hh | |
| parent | 96bd73ae020ecca1f94698744c77498a89ad19f7 (diff) | |
| download | voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.tar.bz2 voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.zip | |
Replace most of C strings with string_view
Diffstat (limited to 'core/version.hh')
| -rw-r--r-- | core/version.hh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/core/version.hh b/core/version.hh index 627df17..b84a2fc 100644 --- a/core/version.hh +++ b/core/version.hh @@ -2,11 +2,17 @@ #define CORE_VERSION_HH 1 #pragma once -extern const unsigned long project_version_major; -extern const unsigned long project_version_minor; -extern const unsigned long project_version_patch; -extern const unsigned long project_version_tweak; +namespace version +{ +extern const unsigned long major; +extern const unsigned long minor; +extern const unsigned long patch; +} // namespace version -extern const char* project_version_string; +namespace version +{ +extern const std::string_view commit; +extern const std::string_view semver; +} // namespace version #endif // CORE_VERSION_HH |
