Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:00:33

0001 /***********************************************************************************\
0002 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
0003 *                                                                                   *
0004 * This software is distributed under the terms of the Apache version 2 licence,     *
0005 * copied verbatim in the file "LICENSE".                                            *
0006 *                                                                                   *
0007 * In applying this licence, CERN does not waive the privileges and immunities       *
0008 * granted to it by virtue of its status as an Intergovernmental Organization        *
0009 * or submit itself to any jurisdiction.                                             *
0010 \***********************************************************************************/
0011 #ifndef GAUDIKERNEL_LOADFACTORYENTRIES_H
0012 #define GAUDIKERNEL_LOADFACTORYENTRIES_H 1
0013 //====================================================================
0014 //  LoadFactoryEntries.h
0015 //--------------------------------------------------------------------
0016 //
0017 //  Package    : GaudiKernel
0018 //
0019 //  Description: Implementation of getFactoryEntries() routine.
0020 //               This routine is needed for forcing the linker
0021 //               to load all the components of the library.
0022 //
0023 //====================================================================
0024 
0025 // DllMain entry point
0026 #include "GaudiKernel/DllMain.icpp"
0027 
0028 #if !defined( __APPLE__ )
0029 void GaudiDll::initialize( void* ) {}
0030 void GaudiDll::finalize( void* ) {}
0031 #endif
0032 
0033 #if defined( GAUDI_V20_COMPAT ) && !defined( G21_HIDE_SYMBOLS )
0034 #  ifdef _WIN32
0035 #    define FACTORYTABLE_API __declspec( dllexport )
0036 #  else
0037 #    define FACTORYTABLE_API
0038 #  endif
0039 
0040 #  define LOAD_FACTORY_ENTRIES( x )                                                                                    \
0041     extern "C" FACTORYTABLE_API void* x##_getFactoryEntries() { return nullptr; }
0042 
0043 #else
0044 
0045 #  define LOAD_FACTORY_ENTRIES( x )                                                                                    \
0046     extern "C" GAUDI_EXPORT void* x##_getFactoryEntries() { return nullptr; }
0047 
0048 #endif // GAUDI_V20_COMPAT
0049 
0050 #endif // GAUDIKERNEL_LOADFACTORYENTRIES_H