diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-03 09:28:01 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-03 09:28:01 -0500 |
commit | b50980ad70684530d55b7adf20de6047ebf53ba2 (patch) | |
tree | 576d284c732e2b5bfc7638a23d9bca4c86f5437c /include/libfud.hpp | |
parent | e420eca2b244c303af51534ab09632045a186b21 (diff) |
Use a configure file for versioning including git revision.
Diffstat (limited to 'include/libfud.hpp')
-rw-r--r-- | include/libfud.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/libfud.hpp b/include/libfud.hpp index c4fa8d7..70165b3 100644 --- a/include/libfud.hpp +++ b/include/libfud.hpp @@ -21,22 +21,22 @@ #include "fud_result.hpp" #include "fud_status.hpp" #include "fud_string.hpp" +#include "fud_array.hpp" #include <cstdint> namespace fud { +constexpr size_t GIT_REV_CHARS = 13; + struct FUD { - uint8_t Major; - uint8_t Minor; - uint8_t Patch; + uint8_t major; + uint8_t minor; + uint8_t patch; + Array<char, GIT_REV_CHARS> revision; }; -/** \brief Fear, unknown, doubt. Call at your own peril. */ -constexpr FUD fud() -{ - return FUD{0, 42, 0}; -} +FUD fud(); /** * \brief Get an environmental variable if it exists. |