|
core-adapters 0.1.2
Third-party adapters for snicholls-core: nanobind helpers, nlohmann/json hooks, the snicholls_core Python package
|
The core-adapters version, and the core version it was built against. More...
#include <snicholls/core/version.hpp>#include <string_view>Go to the source code of this file.
Macros | |
| #define | SNICHOLLS_CORE_ADAPTERS_VERSION_MAJOR 0 |
| The major version. | |
| #define | SNICHOLLS_CORE_ADAPTERS_VERSION_MINOR 1 |
| The minor version. | |
| #define | SNICHOLLS_CORE_ADAPTERS_VERSION_PATCH 2 |
| The patch version. | |
| #define | SNICHOLLS_CORE_ADAPTERS_VERSION |
| The version as one comparable integer: major * 10000 + minor * 100 + patch. | |
| #define | SNICHOLLS_CORE_ADAPTERS_VERSION_STRING |
| The version as a string literal, "major.minor.patch". | |
| #define | SNICHOLLS_CORE_ADAPTERS_REQUIRE_VERSION(major, minor, patch) |
A static_assert that core-adapters is at least major.minor.patch. | |
Functions | |
| constexpr int | snicholls::core_adapters::version_major () noexcept |
| The major version. | |
| constexpr int | snicholls::core_adapters::version_minor () noexcept |
| The minor version. | |
| constexpr int | snicholls::core_adapters::version_patch () noexcept |
| The patch version. | |
| constexpr int | snicholls::core_adapters::version () noexcept |
| The version as one integer. | |
| constexpr std::string_view | snicholls::core_adapters::version_string () noexcept |
| The version as text. | |
| constexpr std::string_view | snicholls::core_adapters::core_version_string () noexcept |
| The snicholls-core version these headers were compiled against. | |
The core-adapters version, and the core version it was built against.
Overview. The version of this repository, written in three places that scripts/check_version.py keeps equal: the macros below, project(... VERSION) in CMakeLists.txt and version in pyproject.toml (the Python package snicholls_core has the same number). SNICHOLLS_CORE_ADAPTERS_REQUIRE_VERSION is the compile-time check for a consumer's header, like core's SNICHOLLS_CORE_REQUIRE_VERSION.
Relationships. snicholls::core::version() (core's own); the CMake check snicholls_core_require. Group: core-adapters.
Guarantees. constexpr, noexcept.
Errors. None; SNICHOLLS_CORE_ADAPTERS_REQUIRE_VERSION is a static_assert.
Performance. Compile time only.
Tests and demos. tests/version_test.cpp, demos/version_demo.cpp.
Dependencies. <string_view>, <snicholls/core/version.hpp>.
Known issues. None.
Status. Experimental, pre-1.0.
Definition in file version.hpp.
| #define SNICHOLLS_CORE_ADAPTERS_REQUIRE_VERSION | ( | major, | |
| minor, | |||
| patch | |||
| ) |
A static_assert that core-adapters is at least major.minor.patch.
Definition at line 65 of file version.hpp.
| #define SNICHOLLS_CORE_ADAPTERS_VERSION |
The version as one comparable integer: major * 10000 + minor * 100 + patch.
Definition at line 54 of file version.hpp.
| #define SNICHOLLS_CORE_ADAPTERS_VERSION_MAJOR 0 |
The major version.
Definition at line 47 of file version.hpp.
| #define SNICHOLLS_CORE_ADAPTERS_VERSION_MINOR 1 |
The minor version.
Definition at line 49 of file version.hpp.
| #define SNICHOLLS_CORE_ADAPTERS_VERSION_PATCH 2 |
The patch version.
Definition at line 51 of file version.hpp.
| #define SNICHOLLS_CORE_ADAPTERS_VERSION_STRING |
The version as a string literal, "major.minor.patch".
Definition at line 59 of file version.hpp.
|
constexprnoexcept |
The snicholls-core version these headers were compiled against.
Definition at line 83 of file version.hpp.
|
constexprnoexcept |
The version as one integer.
Definition at line 79 of file version.hpp.
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |