DeprecationWarnings.h
Go to the documentation of this file.
1 // kate: replace-tabs off; indent-width 4; indent-mode normal
2 // vim: ts=4:sw=4:noexpandtab
3 /*
4 Copyright (c) 2010--2012,
5 François Pomerleau and Stephane Magnenat, ASL, ETHZ, Switzerland
6 You can contact the authors at <f dot pomerleau at gmail dot com> and
7 <stephane at magnenat dot net>
8 All rights reserved.
9 Redistribution and use in source and binary forms, with or without
10 modification, are permitted provided that the following conditions are met:
11  * Redistributions of source code must retain the above copyright
12  notice, this list of conditions and the following disclaimer.
13  * Redistributions in binary form must reproduce the above copyright
14  notice, this list of conditions and the following disclaimer in the
15  documentation and/or other materials provided with the distribution.
16  * Neither the name of the <organization> nor the
17  names of its contributors may be used to endorse or promote products
18  derived from this software without specific prior written permission.
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 DISCLAIMED. IN NO EVENT SHALL ETH-ASL BE LIABLE FOR ANY
23 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30 
31 #ifndef __POINTMATCHER_DEPRECATION_WARNINGS_H
32 #define __POINTMATCHER_DEPRECATION_WARNINGS_H
33 
34 
35 #if __cplusplus >= 201402L
36 #define PM_DEPRECATED(msg) [[deprecated(msg)]]
37 #define PM_DEPRECATION_SUPPORTED
38 #elif defined(__GNUC__)
39 #define PM_DEPRECATED(msg) __attribute__((deprecated))
40 #define PM_DEPRECATION_SUPPORTED
41 #elif defined(_MSC_VER)
42 #define PM_DEPRECATED(msg) __declspec(deprecated)
43 #define PM_DEPRECATION_SUPPORTED
44 #else
45 #define PM_DEPRECATED(msg)
46 #endif
47 
48 #endif /* __POINTMATCHER_DEPRECATION_WARNINGS_H */


mp2p_icp
Author(s):
autogenerated on Fri Dec 20 2024 03:45:57