From b50980ad70684530d55b7adf20de6047ebf53ba2 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Thu, 3 Oct 2024 09:28:01 -0500 Subject: Use a configure file for versioning including git revision. --- include/libfud.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include/libfud.hpp') 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 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 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. -- cgit v1.2.3