From b2dbcb55e2832c373fecb4033a3ed77e5dbc77aa Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 21 Oct 2024 12:49:43 -0500 Subject: Add vector and option. --- source/libfud.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source/libfud.cpp') 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 @@ -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(fudInfo.revision, FudGitHash); fudInfo.revision[fudInfo.revision.size() - 1] = '\0'; return fudInfo; } -- cgit v1.2.3