mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 06:22:58 +02:00
A macro for boilerplate to generate required module entry points
This commit is contained in:
@@ -35,11 +35,6 @@ click from the menu into the actual function to be called.
|
||||
|
||||
/*
|
||||
There are several functions that can be used in a GUI module.
|
||||
|
||||
//#define versionFnName "GetVersionString"
|
||||
If the version is wrong, the module will be rejected.
|
||||
That is it will be loaded and then unloaded.
|
||||
|
||||
//#define ModuleDispatchName "ModuleDispatch"
|
||||
The most useful function. See the example in this
|
||||
file. It has several cases/options in it.
|
||||
@@ -84,18 +79,7 @@ static CommandHandlerObject &ident(AudacityProject&project)
|
||||
return project;
|
||||
}
|
||||
|
||||
// GetVersionString
|
||||
// REQUIRED for the module to be accepted by Audacity.
|
||||
// Without it Audacity will see a version number mismatch.
|
||||
extern DLL_API const wxChar * GetVersionString();
|
||||
const wxChar * GetVersionString()
|
||||
{
|
||||
// Make sure that this version of the module requires the version
|
||||
// of Audacity it is built with.
|
||||
// For now, the versions must match exactly for Audacity to
|
||||
// agree to load the module.
|
||||
return AUDACITY_VERSION_STRING;
|
||||
}
|
||||
DEFINE_VERSION_CHECK
|
||||
|
||||
namespace {
|
||||
void RegisterMenuItems()
|
||||
|
Reference in New Issue
Block a user