Get rid of the main() fallback entry point

This commit is contained in:
Robbert van der Helm
2020-04-16 13:23:36 +02:00
parent dae7384de3
commit 319e9b2b12
+4 -5
View File
@@ -24,15 +24,14 @@
#define VST_EXPORT __attribute__((visibility("default")))
// 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.`
extern "C" {
extern VST_EXPORT AEffect* VSTPluginMain(audioMasterCallback);
VST_EXPORT AEffect* main(audioMasterCallback audioMaster) {
return VSTPluginMain(audioMaster);
}
// There's also another possible legacy entry point just called `main`, but GCC
// will refuse to compile a function called `main` that's not a regular C++ main
// function
VST_EXPORT AEffect* main_plugin(audioMasterCallback audioMaster) {
return VSTPluginMain(audioMaster);
}