-
In 1.1.4, some draft extensions were obviously dropped (file-reference.h, quick-controls.h). There's a bit of a problem with that, if host and PlugIn versions differ and (at least) one of them supports one of the draft extensions. Unless I'm missing something, version.h doesn't include anything that can be used in a preprocessor statement to determine which CLAP version is in use. All nice and helpful for an Neither file-reference.h nor quick-controls.h contain any preprocessor definition, so I can't check for that either. Of course, I could simply copy the two headers from 1.1.3 to my copy of CLAP 1.1.4 and add them to clap.h, but I'd prefer to leave CLAP intact. Am I missing something here? Or can somebody show me how to cobble the required |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
So the way JUCE does it is perhaps something we could follow. That is we can
then you can write things like
this exact JUCE_VERSINO strategy in juce headers allows us to make the clap juce extensions work with multiple juces We may be hurt a bit by the clap versions having an explicit uint32_t in them so we need to be a bit careful Thoughts? |
Beta Was this translation helpful? Give feedback.
-
(It also limits us to 256 makjor, minor or revision versions of CLAP before each breaks, so we couldn't do 1.13.257) |
Beta Was this translation helpful? Give feedback.
-
#254 this is roughly what it would look like if we changed this in 1.1.5 I think (but obviously that conflicts with next) |
Beta Was this translation helpful? Give feedback.
#254 this is roughly what it would look like if we changed this in 1.1.5 I think (but obviously that conflicts with next)