Deprecate.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
26 //----------------------------------------------------------------------
27 #ifndef ICL_CORE_DEPRECATE_H_INCLUDED
28 #define ICL_CORE_DEPRECATE_H_INCLUDED
29 
30 // Define deprecation macros for Visual Studio.
31 #if defined(_MSC_VER) && !defined(ICL_CORE_NO_DEPRECATION)
32 # define ICL_CORE_VC_DEPRECATE __declspec(deprecated)
33 # define ICL_CORE_VC_DEPRECATE_COMMENT(arg) __declspec(deprecated(arg))
34 #else
35 # define ICL_CORE_VC_DEPRECATE
36 # define ICL_CORE_VC_DEPRECATE_COMMENT(arg)
37 #endif
38 
39 // Define deprecation macros for GCC.
40 #if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) && !defined(ICL_CORE_NO_DEPRECATION)
41 # define ICL_CORE_GCC_DEPRECATE __attribute__((deprecated))
42 # if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
43 # define ICL_CORE_GCC_DEPRECATE_COMMENT(arg) __attribute__((deprecated(arg)))
44 # else
45 # define ICL_CORE_GCC_DEPRECATE_COMMENT(arg) __attribute__((deprecated))
46 # endif
47 #else
48 # define ICL_CORE_GCC_DEPRECATE
49 # define ICL_CORE_GCC_DEPRECATE_COMMENT(arg)
50 #endif
51 
52 // Special comment for deprecation due to obsolete style.
53 #define ICL_CORE_VC_DEPRECATE_STYLE ICL_CORE_VC_DEPRECATE_COMMENT("Please follow the new Coding Style Guidelines.")
54 #define ICL_CORE_GCC_DEPRECATE_STYLE ICL_CORE_GCC_DEPRECATE_COMMENT("Please follow the new Coding Style Guidelines.")
55 
56 // Special comment for changing to new source sink pattern.
57 #define ICL_CORE_VC_DEPRECATE_SOURCESINK ICL_CORE_VC_DEPRECATE_COMMENT("Please follow the new Source Sink Pattern.")
58 #define ICL_CORE_GCC_DEPRECATE_SOURCESINK ICL_CORE_GCC_DEPRECATE_COMMENT("Please follow the new Source Sink Pattern.")
59 
60 // Special comment for moving to ROS workspace.
61 #define ICL_CORE_VC_DEPRECATE_MOVE_ROS ICL_CORE_VC_DEPRECATE_COMMENT("This was moved to a ROS package. Please use the implementation in ros_icl or ros_sourcesink instead.")
62 #define ICL_CORE_GCC_DEPRECATE_MOVE_ROS ICL_CORE_GCC_DEPRECATE_COMMENT("This was moved to a ROS package. Please use the implementation in ros_icl or ros_sourcesink instead.")
63 
64 // Special comment for deprecation due to obsolete style which
65 // provides the name of the function that superseded the obsolete one.
66 #define ICL_CORE_VC_DEPRECATE_STYLE_USE(arg) ICL_CORE_VC_DEPRECATE_COMMENT("Please follow the new Coding Style Guidelines and use " #arg " instead.")
67 #define ICL_CORE_GCC_DEPRECATE_STYLE_USE(arg) ICL_CORE_GCC_DEPRECATE_COMMENT("Please follow the new Coding Style Guidelines and use " #arg " instead.")
68 
69 #endif


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58