Skip to content

Commit

Permalink
adding static assert for CLAP 1.2.0 due to CLAP_PARAM_IS_ENUM at an a…
Browse files Browse the repository at this point in the history
…ppropriate place
  • Loading branch information
defiantnerd committed Feb 3, 2024
1 parent 9ab332e commit 15239c2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/detail/vst3/parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
#include <pluginterfaces/vst/ivstmidicontrollers.h>
#include <pluginterfaces/vst/ivstunits.h>

#if CLAP_VERSION_LT(1,2,0)
static_assert(false, "the CLAP-as-VST3 wrapper requires at least CLAP 1.2.0");
/*
* CLAP_PARAM_IS_ENUM is available with CLAP 1.2.0
*
* This is only a requirement to compile the wrapper properly, it will still wrap CLAPs compiled with earlier versions of CLAP.
*/
#endif

using namespace Steinberg;

Vst3Parameter::Vst3Parameter(const Steinberg::Vst::ParameterInfo& vst3info,
Expand Down

0 comments on commit 15239c2

Please sign in to comment.