1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-02 06:40:12 +01:00

Remove macro making extern declaration of RegisterBuiltinModule...

... Forcing other places that use RegisterBuiltinModule to be more explicit
about their link dependencies on ModuleManager, with a new #include directive.

Does this make scripts/graph.pl show a new dependency cycle?  Happily no.  But
now we know.
This commit is contained in:
Paul Licameli
2021-05-13 14:53:19 -04:00
parent b92f2579b7
commit 64bbc31c54
10 changed files with 16 additions and 6 deletions

View File

@@ -141,11 +141,6 @@ public:
// ----------------------------------------------------------------------------
#define MODULE_ENTRY AudacityModule
// ----------------------------------------------------------------------------
// The module entry point prototype
// ----------------------------------------------------------------------------
typedef ModuleInterface *(*ModuleMain)(const wxString *path);
// ----------------------------------------------------------------------------
// If BUILDING_AUDACITY is defined during the current build, it is assumed
// that the module wishes to be embedded in the Audacity executable.
@@ -170,7 +165,6 @@ static ModuleInterface * name(const wxString *path)
// method must be supplied explicitly.
// ----------------------------------------------------------------------------
#define DECLARE_BUILTIN_MODULE_BASE(name) \
extern void RegisterBuiltinModule(ModuleMain rtn); \
class name \
{ \
public: \