28 |
#include "../common/Exception.h" |
#include "../common/Exception.h" |
29 |
#include "InstrumentEditor.h" |
#include "InstrumentEditor.h" |
30 |
|
|
31 |
#define REGISTER_INSTRUMENT_EDITOR(PluginClass) \ |
#if defined(WIN32) |
32 |
|
# define REGISTER_INSTRUMENT_EDITOR(PluginClass) \ |
33 |
|
extern "C" __declspec(dllexport) void* \ |
34 |
|
createInstrumentEditorInnerFactory() { \ |
35 |
|
return new LinuxSampler::InstrumentEditorFactory::InnerFactoryTemplate<PluginClass>(); \ |
36 |
|
} |
37 |
|
#else |
38 |
|
# define REGISTER_INSTRUMENT_EDITOR(PluginClass) \ |
39 |
LinuxSampler::InstrumentEditorFactory::InnerFactoryRegistrator<PluginClass> \ |
LinuxSampler::InstrumentEditorFactory::InnerFactoryRegistrator<PluginClass> \ |
40 |
__auto_register_instrument_editor__##PluginClass; |
__auto_register_instrument_editor__##PluginClass; |
41 |
|
#endif |
42 |
|
|
43 |
namespace LinuxSampler { |
namespace LinuxSampler { |
44 |
|
|