FastJet  3.2.0
deprecated.hh
1 
2 //FJSTARTHEADER
3 // $Id: deprecated.hh 4098 2016-03-15 16:38:22Z salam $
4 //
5 // Copyright (c) 2005-2014, 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 // define a deprecation macro based on the capabilities of the compiler
38 // (as determined at configure time).
39 #if defined(FASTJET_HAVE_CXX14_DEPRECATED)
40 #define FASTJET_DEPRECATED [[deprecated]]
41 #define FASTJET_DEPRECATED_MSG(message) [[deprecated(message)]]
42 #elif defined(FASTJET_HAVE_GNUCXX_DEPRECATED)
43 #define FASTJET_DEPRECATED __attribute__((__deprecated__))
44 #define FASTJET_DEPRECATED_MSG(message) __attribute__((__deprecated__))
45 #else
46 #define FASTJET_DEPRECATED
47 #define FASTJET_DEPRECATED_MSG(message)
48 #endif
49 
50 #endif // __FASTJET_FASTJET_DEPRECATED_HH__