Go to the documentation of this file.00001
00002 #ifndef GAUDIKERNEL_LOADFACTORYENTRIES_H
00003 #define GAUDIKERNEL_LOADFACTORYENTRIES_H 1
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "GaudiKernel/DllMain.icpp"
00018
00019 #if !defined(__APPLE__)
00020 void GaudiDll::initialize(void*) {}
00021 void GaudiDll::finalize(void*) {}
00022 #endif
00023
00024 #if defined(GAUDI_V20_COMPAT) && !defined(G21_HIDE_SYMBOLS)
00025 #ifdef _WIN32
00026 #define FACTORYTABLE_API __declspec(dllexport)
00027 #else
00028 #define FACTORYTABLE_API
00029 #endif
00030
00031 #define LOAD_FACTORY_ENTRIES(x) \
00032 extern "C" FACTORYTABLE_API void* x##_getFactoryEntries() { \
00033 return 0; \
00034 }
00035
00036 #else
00037
00038 #define LOAD_FACTORY_ENTRIES(x) \
00039 extern "C" GAUDI_EXPORT void* x##_getFactoryEntries() { \
00040 return 0; \
00041 }
00042
00043 #endif // GAUDI_V20_COMPAT
00044
00045 #endif // GAUDIKERNEL_LOADFACTORYENTRIES_H