Loading...
Searching...
No Matches
version.hpp
Go to the documentation of this file.
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <cstddef>
#include <cstdint>
#define SEQAN3_VERSION_MAJOR 3
#define SEQAN3_VERSION_MINOR 4
#define SEQAN3_VERSION_PATCH 0
#define SEQAN3_RELEASE_CANDIDATE 0
#define SEQAN3_VERSION (SEQAN3_VERSION_MAJOR * 10000 + SEQAN3_VERSION_MINOR * 100 + SEQAN3_VERSION_PATCH)
#define SEQAN3_VERSION_CSTRING_HELPER_STR(str) #str
#define SEQAN3_VERSION_CSTRING_HELPER_FUNC(MAJOR, MINOR, PATCH) \
SEQAN3_VERSION_CSTRING_HELPER_STR(MAJOR) \
"." SEQAN3_VERSION_CSTRING_HELPER_STR(MINOR) "." SEQAN3_VERSION_CSTRING_HELPER_STR(PATCH)
#if (SEQAN3_RELEASE_CANDIDATE > 0)
# define SEQAN3_RELEASE_CANDIDATE_HELPER(RC) "-rc." SEQAN3_VERSION_CSTRING_HELPER_STR(RC)
#else
# define SEQAN3_RELEASE_CANDIDATE_HELPER(RC) ""
#endif
#define SEQAN3_VERSION_CSTRING \
SEQAN3_VERSION_CSTRING_HELPER_FUNC(SEQAN3_VERSION_MAJOR, SEQAN3_VERSION_MINOR, SEQAN3_VERSION_PATCH) \
SEQAN3_RELEASE_CANDIDATE_HELPER(SEQAN3_RELEASE_CANDIDATE)
namespace seqan3
{
constexpr uint8_t seqan3_version_major = SEQAN3_VERSION_MAJOR;
constexpr uint8_t seqan3_version_minor = SEQAN3_VERSION_MINOR;
constexpr uint8_t seqan3_version_patch = SEQAN3_VERSION_PATCH;
constexpr std::size_t seqan3_version = SEQAN3_VERSION;
constexpr char const * seqan3_version_cstring = SEQAN3_VERSION_CSTRING;
} // namespace seqan3
#undef SEQAN3_VERSION_CSTRING_HELPER_STR
#undef SEQAN3_VERSION_CSTRING_HELPER_FUNC
#undef SEQAN3_RELEASE_CANDIDATE_HELPER
cstddef
cstdint
seqan3
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
seqan3::seqan3_version_major
constexpr uint8_t seqan3_version_major
The major version.
Definition version.hpp:54
seqan3::seqan3_version
constexpr std::size_t seqan3_version
The full version as std::size_t.
Definition version.hpp:61
seqan3::seqan3_version_minor
constexpr uint8_t seqan3_version_minor
The minor version.
Definition version.hpp:56
seqan3::seqan3_version_cstring
constexpr char const * seqan3_version_cstring
The full version as null terminated string.
Definition version.hpp:64
seqan3::seqan3_version_patch
constexpr uint8_t seqan3_version_patch
The patch version.
Definition version.hpp:58
std::size_t
SEQAN3_VERSION_MAJOR
#define SEQAN3_VERSION_MAJOR
The major version as MACRO.
Definition version.hpp:16
SEQAN3_VERSION_PATCH
#define SEQAN3_VERSION_PATCH
The patch version as MACRO.
Definition version.hpp:20
SEQAN3_VERSION_MINOR
#define SEQAN3_VERSION_MINOR
The minor version as MACRO.
Definition version.hpp:18
SEQAN3_VERSION
#define SEQAN3_VERSION
The full version as MACRO (number).
Definition version.hpp:25
SEQAN3_VERSION_CSTRING
#define SEQAN3_VERSION_CSTRING
The full version as null terminated string.
Definition version.hpp:46
Hide me