From 057b9ce2f4d37efdff9f06a29bee1162aae5293f Mon Sep 17 00:00:00 2001 From: Tristan Brindle Date: Thu, 15 Aug 2024 17:20:23 +0100 Subject: [PATCH] Add library version info to macros.hpp --- include/flux/macros.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/flux/macros.hpp b/include/flux/macros.hpp index e781bad0..a6f6978f 100644 --- a/include/flux/macros.hpp +++ b/include/flux/macros.hpp @@ -8,6 +8,17 @@ #include +#define FLUX_VERSION_MAJOR 0 +#define FLUX_VERSION_MINOR 0 +#define FLUX_VERSION_PATCH 0 +#define FLUX_VERSION_DEVEL 1 // 0 => Release, 1 => development post Major.Minor.Patch + +#define FLUX_VERSION \ + (FLUX_VERSION_MAJOR * 100'000 \ + + FLUX_VERSION_MINOR * 1'000 \ + + FLUX_VERSION_PATCH * 10 \ + + FLUX_VERSION_DEVEL) + #define FLUX_FWD(x) static_cast(x) #define FLUX_DECLVAL(...) ((static_cast<__VA_ARGS__(*)()noexcept>(nullptr))())