Sharg 1.1.2-rc.1
The argument parser for bio-c++ tools.
Loading...
Searching...
No Matches
version.hpp File Reference

Provides SHARG version macros and global variables. More...

#include <cstddef>
#include <cstdint>
+ Include dependency graph for version.hpp:

Go to the source code of this file.

Macros

#define SHARG_VERSION_MAJOR   1
 The major version as MACRO.
 
#define SHARG_VERSION_MINOR   1
 The minor version as MACRO.
 
#define SHARG_VERSION_PATCH   2
 The patch version as MACRO.
 
#define SHARG_RELEASE_CANDIDATE   1
 The release candidate number. 0 means stable release, >= 1 means release candidate.
 
#define SHARG_VERSION   (SHARG_VERSION_MAJOR * 10000 + SHARG_VERSION_MINOR * 100 + SHARG_VERSION_PATCH)
 The full version as MACRO (number).
 
#define SHARG_VERSION_CSTRING_HELPER_STR(str)   #str
 Converts a number to a string. Preprocessor needs this indirection to properly expand the values to strings.
 
#define SHARG_VERSION_CSTRING_HELPER_FUNC(MAJOR, MINOR, PATCH)
 Converts version numbers to string.
 
#define SHARG_RELEASE_CANDIDATE_HELPER(RC)   ""
 A helper function that expands to a suitable release candidate suffix.
 
#define SHARG_VERSION_CSTRING
 The full version as null terminated string.
 

Variables

constexpr uint8_t sharg::sharg_version_major = SHARG_VERSION_MAJOR
 The major version.
 
constexpr uint8_t sharg::sharg_version_minor = SHARG_VERSION_MINOR
 The minor version.
 
constexpr uint8_t sharg::sharg_version_patch = SHARG_VERSION_PATCH
 The patch version.
 
constexpr std::size_t sharg::sharg_version = SHARG_VERSION
 The full version as std::size_t.
 
constexpr char const * sharg::sharg_version_cstring = SHARG_VERSION_CSTRING
 The full version as null terminated string.
 

Detailed Description

Provides SHARG version macros and global variables.

Author
Svenja Mehringer <svenja.mehringer AT fu-berlin.de>

Macro Definition Documentation

◆ SHARG_VERSION_CSTRING

#define SHARG_VERSION_CSTRING
Value:
SHARG_RELEASE_CANDIDATE_HELPER(SHARG_RELEASE_CANDIDATE)
#define SHARG_VERSION_MINOR
The minor version as MACRO.
Definition version.hpp:18
#define SHARG_VERSION_CSTRING_HELPER_FUNC(MAJOR, MINOR, PATCH)
Converts version numbers to string.
Definition version.hpp:33
#define SHARG_VERSION_PATCH
The patch version as MACRO.
Definition version.hpp:20
#define SHARG_RELEASE_CANDIDATE
The release candidate number. 0 means stable release, >= 1 means release candidate.
Definition version.hpp:22
#define SHARG_VERSION_MAJOR
The major version as MACRO.
Definition version.hpp:16

The full version as null terminated string.

◆ SHARG_VERSION_CSTRING_HELPER_FUNC

#define SHARG_VERSION_CSTRING_HELPER_FUNC ( MAJOR,
MINOR,
PATCH )
Value:
#define SHARG_VERSION_CSTRING_HELPER_STR(str)
Converts a number to a string. Preprocessor needs this indirection to properly expand the values to s...
Definition version.hpp:30

Converts version numbers to string.

Hide me