Definitions and helper classes used by the rest of the library.
|
#define | SIGNALSMITH_DSP_VERSION_MAJOR 1 |
|
#define | SIGNALSMITH_DSP_VERSION_MINOR 6 |
|
#define | SIGNALSMITH_DSP_VERSION_PATCH 0 |
|
#define | SIGNALSMITH_DSP_VERSION_STRING "1.6.0" |
|
#define | SIGNALSMITH_DSP_VERSION_CHECK(major, minor, patch) static_assert(::signalsmith::versionCheck(major, minor, patch), "signalsmith library version is " SIGNALSMITH_DSP_VERSION_STRING); |
| Check the library version is compatible (semver). More...
|
|
◆ SIGNALSMITH_DSP_VERSION_CHECK
#define SIGNALSMITH_DSP_VERSION_CHECK |
( |
|
major, |
|
|
|
minor, |
|
|
|
patch |
|
) |
| static_assert(::signalsmith::versionCheck(major, minor, patch), "signalsmith library version is " SIGNALSMITH_DSP_VERSION_STRING); |
Check the library version is compatible (semver).
◆ versionCheck()
constexpr bool signalsmith::versionCheck |
( |
int |
major, |
|
|
int |
minor, |
|
|
int |
patch = 0 |
|
) |
| |
|
constexpr |
Version compatability check.
static_assert(signalsmith::version(1, 4, 1), "version check");
... or use the equivalent SIGNALSMITH_DSP_VERSION_CHECK
. Major versions are not compatible with each other. Minor and patch versions are backwards-compatible.