The Gaudi Framework
v36r11 (bdb84f5f)
LoadFactoryEntries.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#ifndef GAUDIKERNEL_LOADFACTORYENTRIES_H
12
#define GAUDIKERNEL_LOADFACTORYENTRIES_H 1
13
//====================================================================
14
// LoadFactoryEntries.h
15
//--------------------------------------------------------------------
16
//
17
// Package : GaudiKernel
18
//
19
// Description: Implementation of getFactoryEntries() routine.
20
// This routine is needed for forcing the linker
21
// to load all the components of the library.
22
//
23
//====================================================================
24
25
// DllMain entry point
26
#include "
GaudiKernel/DllMain.icpp
"
27
28
#if !defined( __APPLE__ )
29
void
GaudiDll::initialize
(
void
* ) {}
30
void
GaudiDll::finalize
(
void
* ) {}
31
#endif
32
33
#if defined( GAUDI_V20_COMPAT ) && !defined( G21_HIDE_SYMBOLS )
34
# ifdef _WIN32
35
# define FACTORYTABLE_API __declspec( dllexport )
36
# else
37
# define FACTORYTABLE_API
38
# endif
39
40
# define LOAD_FACTORY_ENTRIES( x ) \
41
extern "C" FACTORYTABLE_API void* x##_getFactoryEntries() { return nullptr; }
42
43
#else
44
45
# define LOAD_FACTORY_ENTRIES( x ) \
46
extern "C" GAUDI_EXPORT void* x##_getFactoryEntries() { return nullptr; }
47
48
#endif // GAUDI_V20_COMPAT
49
50
#endif // GAUDIKERNEL_LOADFACTORYENTRIES_H
GaudiDll::initialize
static void initialize(void *hinstDLL)
Definition:
LoadFactoryEntries.h:29
DllMain.icpp
GaudiDll::finalize
static void finalize(void *hinstDLL)
Definition:
LoadFactoryEntries.h:30
GaudiKernel
include
GaudiKernel
LoadFactoryEntries.h
Generated on Mon Feb 27 2023 19:04:38 for The Gaudi Framework by
1.8.18