/[svn]/linuxsampler/trunk/src/plugins/InstrumentEditorFactory.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/plugins/InstrumentEditorFactory.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1480 by schoenebeck, Wed Oct 3 18:37:56 2007 UTC revision 1481 by senoner, Wed Nov 14 23:42:15 2007 UTC
# Line 28  Line 28 
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    

Legend:
Removed from v.1480  
changed lines
  Added in v.1481

  ViewVC Help
Powered by ViewVC