From c9ca1d8e24fbcda5621c07a460f5ef6babc7e382 Mon Sep 17 00:00:00 2001 From: Jan Breuer Date: Sat, 23 Nov 2024 19:00:10 +0100 Subject: [PATCH] Add CADET file format to versioninfo --- include/VersionInfo.hpp | 1 + src/VersionInfo.cpp.in | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/VersionInfo.hpp b/include/VersionInfo.hpp index e9a3fed..a67b9a1 100644 --- a/include/VersionInfo.hpp +++ b/include/VersionInfo.hpp @@ -29,6 +29,7 @@ namespace casema const char* getCompiler() CASEMA_NOEXCEPT; const char* getCompilerFlags() CASEMA_NOEXCEPT; const char* getBuildHost() CASEMA_NOEXCEPT; + const int getFileFormat() CASEMA_NOEXCEPT; } // namespace casema diff --git a/src/VersionInfo.cpp.in b/src/VersionInfo.cpp.in index 907d497..0b135cf 100644 --- a/src/VersionInfo.cpp.in +++ b/src/VersionInfo.cpp.in @@ -26,6 +26,11 @@ namespace casema const char BUILD_HOST[] = "@CMAKE_SYSTEM@"; const char COMPILER_FLAGS[] = "@CMAKE_CXX_FLAGS@"; + const int getFileFormat() CASEMA_NOEXCEPT + { + return 40000; // CADET file format + } + const char* getVersion() CASEMA_NOEXCEPT { return casema::CASEMA_VERSION;