The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
PluginServiceCommon.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 2013-2025 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#pragma once
12
14
15#ifndef GAUDI_PLUGIN_SERVICE_USE_V2
16# if defined( GAUDI_PLUGIN_SERVICE_V2 ) || !defined( GAUDI_PLUGIN_SERVICE_V1 )
17# define GAUDI_PLUGIN_SERVICE_V2_INLINE inline
18# define GAUDI_PLUGIN_SERVICE_V1_INLINE
19# define GAUDI_PLUGIN_SERVICE_USE_V2 1
20# else
21# define GAUDI_PLUGIN_SERVICE_V2_INLINE
22# define GAUDI_PLUGIN_SERVICE_V1_INLINE inline
23# define GAUDI_PLUGIN_SERVICE_USE_V2 0
24# endif
25#endif
26
27#define GAUDIPS_HASCLASSVISIBILITY
28
29#if defined( GAUDIPS_HASCLASSVISIBILITY )
30# define GAUDIPS_IMPORT __attribute__( ( visibility( "default" ) ) )
31# define GAUDIPS_EXPORT __attribute__( ( visibility( "default" ) ) )
32# define GAUDIPS_LOCAL __attribute__( ( visibility( "hidden" ) ) )
33#else
34# define GAUDIPS_IMPORT
35# define GAUDIPS_EXPORT
36# define GAUDIPS_LOCAL
37#endif
38
39#ifdef GaudiPluginService_EXPORTS
40# define GAUDIPS_API GAUDIPS_EXPORT
41#else
42# define GAUDIPS_API GAUDIPS_IMPORT
43#endif