gdcmMacro.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __gdcmMacro_h
00016 #define __gdcmMacro_h
00017
00018 #include "gdcmException.h"
00019 #include "gdcmTrace.h"
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #if defined(GDCM_LEGACY_REMOVE)
00030 # define GDCM_LEGACY(method)
00031 #elif defined(GDCM_LEGACY_SILENT) || defined(SWIG)
00032
00033 # define GDCM_LEGACY(method) method;
00034 #else
00035
00036
00037 # if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
00038 # define GDCM_LEGACY(method) method __attribute__((deprecated));
00039 # elif defined(_MSC_VER) && _MSC_VER >= 1300
00040 # define GDCM_LEGACY(method) __declspec(deprecated) method;
00041 # else
00042 # define GDCM_LEGACY(method) method;
00043 # endif
00044 #endif
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 #if defined(GDCM_LEGACY_REMOVE) || defined(GDCM_LEGACY_SILENT)
00064 # define GDCM_LEGACY_BODY(method, version)
00065 # define GDCM_LEGACY_REPLACED_BODY(method, version, replace)
00066 #else
00067 # define GDCM_LEGACY_BODY(method, version) \
00068 gdcmWarningMacro(#method " was deprecated for " version " and will be removed in a future version.")
00069 # define GDCM_LEGACY_REPLACED_BODY(method, version, replace) \
00070 gdcmWarningMacro(#method " was deprecated for " version " and will be removed in a future version. Use " #replace " instead.")
00071 #endif
00072
00073
00074 #endif // __gdcmMacro_h