clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit d6ce78832ac489c428c8292f2eb34878ded0d5d5
parent 940d80b09521554254a221707443a318b045da8f
Author: Paul Walker <paul@pwjw.com>
Date:   Fri, 23 Dec 2022 16:15:41 -0500

Checks on shifted version for CLAP_VERSION_EQ per alex suggestion

Diffstat:
Msrc/main.cc | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main.cc b/src/main.cc @@ -10,6 +10,16 @@ #error CLAP_VERSION_EQ is inconsistent #endif +#if CLAP_VERSION_EQ(CLAP_VERSION_MAJOR + 1, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION) +#error CLAP_VERSION_EQ is inconsistent (MAJOR) +#endif +#if CLAP_VERSION_EQ(CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR + 1, CLAP_VERSION_REVISION) +#error CLAP_VERSION_EQ is inconsistent (MINOR) +#endif +#if CLAP_VERSION_EQ(CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION + 1) +#error CLAP_VERSION_EQ is inconsistent (REVISION) +#endif + #if !CLAP_VERSION_GE(CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION) #error CLAP_VERSION_GE is inconsistent #endif