Skip to content

Commit

Permalink
Defined version metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Jul 26, 2020
1 parent f48c302 commit 1371d6b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ $ sudo make install

### Constants

- `dogma::version::major`
- `dogma::version::minor`
- `dogma::version::patch`

### Enums

### Classes
Expand Down
6 changes: 5 additions & 1 deletion dogma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion dogma/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1371d6b

Please sign in to comment.