mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-18 16:41:14 +02:00
Make it easier to enforce the requirement that module version string exactly matches Audacity version string, by directly including Audacity.h and using AUDACITY_VERSION_STRING.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <wx/wx.h>
|
||||
#include "ScripterCallback.h"
|
||||
//#include "../lib_widget_extra/ShuttleGuiBase.h"
|
||||
#include "../../src/Audacity.h"
|
||||
#include "../../src/ShuttleGui.h"
|
||||
|
||||
#ifdef NOT_DEFINED
|
||||
@@ -177,7 +178,12 @@ int SCRIPT_PIPE_DLL_API ExtensionModuleInit(int ix)
|
||||
|
||||
wxString SCRIPT_PIPE_DLL_API GetVersionString()
|
||||
{
|
||||
return SCRIPT_PIPE_VERSION_STRING;
|
||||
// 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;
|
||||
}
|
||||
|
||||
} // End extern "C"
|
||||
|
Reference in New Issue
Block a user