From 1371d6b5ed10ffb16e5660f989d1ddd62fb2afb3 Mon Sep 17 00:00:00 2001 From: Arto Bendiken Date: Sun, 26 Jul 2020 16:30:43 +0300 Subject: [PATCH] Defined version metadata. --- README.md | 4 ++++ dogma.hpp | 6 +++++- dogma/version.hpp | 6 +++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c1b333a..56467a4 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ $ sudo make install ### Constants +- `dogma::version::major` +- `dogma::version::minor` +- `dogma::version::patch` + ### Enums ### Classes diff --git a/dogma.hpp b/dogma.hpp index 470fc4f..b7fa54d 100644 --- a/dogma.hpp +++ b/dogma.hpp @@ -28,7 +28,11 @@ namespace dogma { /** * @see @see https://dogma.dev/history */ -namespace dogma::version {} +namespace dogma::version { + static inline constexpr int major = 0; + static inline constexpr int minor = 0; + static inline constexpr int patch = 0; +} // namespace dogma::version /** π */ #ifndef M_PI diff --git a/dogma/version.hpp b/dogma/version.hpp index a899e54..3b62fc4 100644 --- a/dogma/version.hpp +++ b/dogma/version.hpp @@ -10,4 +10,8 @@ namespace dogma { /** * @see @see https://dogma.dev/history */ -namespace dogma::version {} +namespace dogma::version { + static inline constexpr int major = 0; + static inline constexpr int minor = 0; + static inline constexpr int patch = 0; +} // namespace dogma::version