FastJet  3.4.0
deprecated.hh
1 
2 //FJSTARTHEADER
3 // $Id$
4 //
5 // Copyright (c) 2005-2021, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
6 //
7 //----------------------------------------------------------------------
8 // This file is part of FastJet.
9 //
10 // FastJet is free software; you can redistribute it and/or modify
11 // it under the terms of the GNU General Public License as published by
12 // the Free Software Foundation; either version 2 of the License, or
13 // (at your option) any later version.
14 //
15 // The algorithms that underlie FastJet have required considerable
16 // development. They are described in the original FastJet paper,
17 // hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use
18 // FastJet as part of work towards a scientific publication, please
19 // quote the version you use and include a citation to the manual and
20 // optionally also to hep-ph/0512210.
21 //
22 // FastJet is distributed in the hope that it will be useful,
23 // but WITHOUT ANY WARRANTY; without even the implied warranty of
24 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 // GNU General Public License for more details.
26 //
27 // You should have received a copy of the GNU General Public License
28 // along with FastJet. If not, see <http://www.gnu.org/licenses/>.
29 //----------------------------------------------------------------------
30 //FJENDHEADER
31 
32 #ifndef __FASTJET_FASTJET_DEPRECATED_HH__
33 #define __FASTJET_FASTJET_DEPRECATED_HH__
34 
35 #include "fastjet/config.h"
36 
37 #ifndef SWIG
38 
39 // define a deprecation macro based on the capabilities of the compiler
40 // (as determined at configure time).
41 #if defined(FASTJET_HAVE_CXX14_DEPRECATED) && (!defined(__FJCORE__))
42 #define FASTJET_DEPRECATED(func) [[deprecated]] func
43 #define FASTJET_DEPRECATED_MSG(message,func) [[deprecated(message)]] func
44 #elif defined(FASTJET_HAVE_GNUCXX_DEPRECATED)
45 #define FASTJET_DEPRECATED(func) func __attribute__((__deprecated__))
46 #define FASTJET_DEPRECATED_MSG(message,func) func __attribute__((__deprecated__))
47 #else
48 #define FASTJET_DEPRECATED(func) func
49 #define FASTJET_DEPRECATED_MSG(message,func) func
50 #endif
51 
52 #else // SIWG
53 #define FASTJET_DEPRECATED(func) func
54 #define FASTJET_DEPRECATED_MSG(message,func) func
55 #endif // SWIG
56 
57 #endif // __FASTJET_FASTJET_DEPRECATED_HH__