Skip to content

Commit

Permalink
Merge pull request #202 from tcbrindle/pr/versioning
Browse files Browse the repository at this point in the history
Add library version info to macros.hpp
  • Loading branch information
tcbrindle authored Aug 15, 2024
2 parents 6f6dbee + 057b9ce commit 7896a3a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/flux/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@

#include <version>

#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<decltype(x)&&>(x)

#define FLUX_DECLVAL(...) ((static_cast<__VA_ARGS__(*)()noexcept>(nullptr))())
Expand Down

0 comments on commit 7896a3a

Please sign in to comment.