diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-05 08:33:39 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-05 08:33:39 -0500 |
commit | 79620980ea3880f6512a35b9d688a60a02ff8b98 (patch) | |
tree | b4ab3dfc656b88989f3e4234e9c476c295c176ed /source/libfud.cpp | |
parent | b50980ad70684530d55b7adf20de6047ebf53ba2 (diff) |
Formatting changes. Refactoring out detail::CopyMove from Result.
Diffstat (limited to 'source/libfud.cpp')
-rw-r--r-- | source/libfud.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libfud.cpp b/source/libfud.cpp index 252eae0..8c962ba 100644 --- a/source/libfud.cpp +++ b/source/libfud.cpp @@ -18,7 +18,7 @@ #include "libfud.hpp" #include "fud_assert.hpp" -#include "git_version.hpp" +#include "fud_version.hpp" #include <cstdlib> @@ -27,10 +27,10 @@ namespace fud { FUD fud() { FUD fudInfo{}; + static_assert(sizeof(GitHash) >= sizeof(fudInfo.revision)); fudInfo.major = FudVersionMajor; fudInfo.minor = FudVersionMinor; fudInfo.patch = FudVersionPatch; - static_assert(sizeof(GitHash) >= sizeof(fudInfo.revision)); auto copyResult = copyMem(fudInfo.revision.data(), fudInfo.revision.size(), GitHash, fudInfo.revision.size() - 1); fudAssert(copyResult == FudStatus::Success); fudInfo.revision[fudInfo.revision.size() - 1] = '\0'; |