Thrill  0.1
deprecated.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * tlx/define/deprecated.hpp
3  *
4  * Part of tlx - http://panthema.net/tlx
5  *
6  * Copyright (C) 2008-2009 Andreas Beckmann <[email protected]>
7  * Copyright (C) 2013 Timo Bingmann <[email protected]>
8  * Copyright (C) 2018 Manuel Penschuck <[email protected]>
9  *
10  * All rights reserved. Published under the Boost Software License, Version 1.0
11  ******************************************************************************/
12 
13 #ifndef TLX_DEFINE_DEPRECATED_HEADER
14 #define TLX_DEFINE_DEPRECATED_HEADER
15 
16 namespace tlx {
17 
18 //! \addtogroup tlx_define
19 //! \{
20 
21 #if TLX_NO_DEPRECATED
22  #define TLX_DEPRECATED(x) x
23 #elif defined(_MSC_VER)
24  #define TLX_DEPRECATED(x) __declspec(deprecated)x
25 #elif defined(__clang__) || defined(__GNUG__)
26  #define TLX_DEPRECATED(x) x __attribute__ ((deprecated))
27 #endif
28 
29 #define TLX_DEPRECATED_FUNC_DEF(x) TLX_DEPRECATED(x); x
30 
31 //! \}
32 
33 } // namespace tlx
34 
35 #endif // !TLX_DEFINE_DEPRECATED_HEADER
36 
37 /******************************************************************************/