Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00026 
00027 #ifndef ICL_CORE_DEPRECATE_H_INCLUDED
00028 #define ICL_CORE_DEPRECATE_H_INCLUDED
00029 
00030 
00031 #if defined(_MSC_VER) && !defined(ICL_CORE_NO_DEPRECATION)
00032 # define ICL_CORE_VC_DEPRECATE __declspec(deprecated)
00033 # define ICL_CORE_VC_DEPRECATE_COMMENT(arg) __declspec(deprecated(arg))
00034 #else
00035 # define ICL_CORE_VC_DEPRECATE
00036 # define ICL_CORE_VC_DEPRECATE_COMMENT(arg)
00037 #endif
00038 
00039 
00040 #if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) && !defined(ICL_CORE_NO_DEPRECATION)
00041 # define ICL_CORE_GCC_DEPRECATE __attribute__((deprecated))
00042 # if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
00043 #  define ICL_CORE_GCC_DEPRECATE_COMMENT(arg) __attribute__((deprecated(arg)))
00044 # else
00045 #  define ICL_CORE_GCC_DEPRECATE_COMMENT(arg) __attribute__((deprecated))
00046 # endif
00047 #else
00048 # define ICL_CORE_GCC_DEPRECATE
00049 # define ICL_CORE_GCC_DEPRECATE_COMMENT(arg)
00050 #endif
00051 
00052 
00053 #define ICL_CORE_VC_DEPRECATE_STYLE ICL_CORE_VC_DEPRECATE_COMMENT("Please follow the new Coding Style Guidelines.")
00054 #define ICL_CORE_GCC_DEPRECATE_STYLE ICL_CORE_GCC_DEPRECATE_COMMENT("Please follow the new Coding Style Guidelines.")
00055 
00056 
00057 
00058 #define ICL_CORE_VC_DEPRECATE_STYLE_USE(arg) ICL_CORE_VC_DEPRECATE_COMMENT("Please follow the new Coding Style Guidelines and use " #arg " instead.")
00059 #define ICL_CORE_GCC_DEPRECATE_STYLE_USE(arg) ICL_CORE_GCC_DEPRECATE_COMMENT("Please follow the new Coding Style Guidelines and use " #arg " instead.")
00060 
00061 #endif