Loading...
Searching...
No Matches
version.hpp
Go to the documentation of this file.
// --------------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
// shipped with this file and also available at: https://github.com/seqan/raptor/blob/main/LICENSE.md
// --------------------------------------------------------------------------------------------------------
#pragma once
#include <cstdint>
#define RAPTOR_VERSION_MAJOR 3
#define RAPTOR_VERSION_MINOR 0
#define RAPTOR_VERSION_PATCH 1
#define RAPTOR_RELEASE_CANDIDATE 0
#define RAPTOR_VERSION (RAPTOR_VERSION_MAJOR * 10000 + RAPTOR_VERSION_MINOR * 100 + RAPTOR_VERSION_PATCH)
#define RAPTOR_VERSION_CSTRING_HELPER_STR(str) #str
#define RAPTOR_VERSION_CSTRING_HELPER_FUNC(MAJOR, MINOR, PATCH) \
RAPTOR_VERSION_CSTRING_HELPER_STR(MAJOR) \
"." RAPTOR_VERSION_CSTRING_HELPER_STR(MINOR) "." RAPTOR_VERSION_CSTRING_HELPER_STR(PATCH)
#if (RAPTOR_RELEASE_CANDIDATE > 0)
# define RAPTOR_RELEASE_CANDIDATE_HELPER(RC) "-rc." RAPTOR_VERSION_CSTRING_HELPER_STR(RC)
#else
# define RAPTOR_RELEASE_CANDIDATE_HELPER(RC) ""
#endif
#define RAPTOR_VERSION_CSTRING \
RAPTOR_VERSION_CSTRING_HELPER_FUNC(RAPTOR_VERSION_MAJOR, RAPTOR_VERSION_MINOR, RAPTOR_VERSION_PATCH) \
RAPTOR_RELEASE_CANDIDATE_HELPER(RAPTOR_RELEASE_CANDIDATE)
namespace raptor
{
constexpr uint8_t raptor_version_major = RAPTOR_VERSION_MAJOR;
constexpr uint8_t raptor_version_minor = RAPTOR_VERSION_MINOR;
constexpr uint8_t raptor_version_patch = RAPTOR_VERSION_PATCH;
constexpr std::size_t raptor_version = RAPTOR_VERSION;
constexpr char const * raptor_version_cstring = RAPTOR_VERSION_CSTRING;
} // namespace raptor
#undef RAPTOR_VERSION_CSTRING_HELPER_STR
#undef RAPTOR_VERSION_CSTRING_HELPER_FUNC
#undef RAPTOR_RELEASE_CANDIDATE_HELPER
cstdint
std::size_t
raptor::raptor_version_cstring
constexpr char const * raptor_version_cstring
The full version as null terminated string.
Definition version.hpp:66
RAPTOR_VERSION_CSTRING
#define RAPTOR_VERSION_CSTRING
The full version as null terminated string.
Definition version.hpp:48
RAPTOR_VERSION_MINOR
#define RAPTOR_VERSION_MINOR
The minor version as MACRO.
Definition version.hpp:20
raptor::raptor_version_patch
constexpr uint8_t raptor_version_patch
The patch version.
Definition version.hpp:60
RAPTOR_VERSION
#define RAPTOR_VERSION
The full version as MACRO (number).
Definition version.hpp:27
RAPTOR_VERSION_MAJOR
#define RAPTOR_VERSION_MAJOR
The major version as MACRO.
Definition version.hpp:18
RAPTOR_VERSION_PATCH
#define RAPTOR_VERSION_PATCH
The patch version as MACRO.
Definition version.hpp:22
raptor::raptor_version_major
constexpr uint8_t raptor_version_major
The major version.
Definition version.hpp:56
raptor::raptor_version
constexpr std::size_t raptor_version
The full version as std::size_t.
Definition version.hpp:63
raptor::raptor_version_minor
constexpr uint8_t raptor_version_minor
The minor version.
Definition version.hpp:58