mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Get rid of the main() fallback entry point
This commit is contained in:
@@ -24,15 +24,14 @@
|
|||||||
#define VST_EXPORT __attribute__((visibility("default")))
|
#define VST_EXPORT __attribute__((visibility("default")))
|
||||||
|
|
||||||
// The main entry point for VST plugins should be called `VSTPluginMain``. The
|
// The main entry point for VST plugins should be called `VSTPluginMain``. The
|
||||||
// other two exist for legacy reasons since some old hosts might still use
|
// other one exist for legacy reasons since some old hosts might still use
|
||||||
// them.`
|
// them.`
|
||||||
extern "C" {
|
extern "C" {
|
||||||
extern VST_EXPORT AEffect* VSTPluginMain(audioMasterCallback);
|
extern VST_EXPORT AEffect* VSTPluginMain(audioMasterCallback);
|
||||||
|
|
||||||
VST_EXPORT AEffect* main(audioMasterCallback audioMaster) {
|
// There's also another possible legacy entry point just called `main`, but GCC
|
||||||
return VSTPluginMain(audioMaster);
|
// will refuse to compile a function called `main` that's not a regular C++ main
|
||||||
}
|
// function
|
||||||
|
|
||||||
VST_EXPORT AEffect* main_plugin(audioMasterCallback audioMaster) {
|
VST_EXPORT AEffect* main_plugin(audioMasterCallback audioMaster) {
|
||||||
return VSTPluginMain(audioMaster);
|
return VSTPluginMain(audioMaster);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user