summaryrefslogtreecommitdiff
path: root/source/libfud.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/libfud.cpp')
-rw-r--r--source/libfud.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/libfud.cpp b/source/libfud.cpp
index 802b2c7..be43490 100644
--- a/source/libfud.cpp
+++ b/source/libfud.cpp
@@ -17,8 +17,7 @@
#include "libfud.hpp"
-#include "fud_assert.hpp"
-#include "fud_version.hpp"
+#include "fud_config.hpp"
#include <cstdlib>
@@ -27,12 +26,11 @@ namespace fud {
FUD fud()
{
FUD fudInfo{};
- static_assert(sizeof(GitHash) >= sizeof(fudInfo.revision));
+ static_assert(sizeof(FudGitHash) >= sizeof(fudInfo.revision));
fudInfo.major = FudVersionMajor;
fudInfo.minor = FudVersionMinor;
fudInfo.patch = FudVersionPatch;
- auto copyResult = copyMem(fudInfo.revision.data(), fudInfo.revision.size(), GitHash, fudInfo.revision.size() - 1);
- fudAssert(copyResult == FudStatus::Success);
+ copyMem<sizeof(fudInfo.revision) - 1>(fudInfo.revision, FudGitHash);
fudInfo.revision[fudInfo.revision.size() - 1] = '\0';
return fudInfo;
}