Go to the documentation of this file.
6 #ifndef SOT_PATTERN_GENERATOR_DEPRECATED_HH
7 # define SOT_PATTERN_GENERATOR_DEPRECATED_HH
25 # if defined(__cplusplus) && (__cplusplus >= 201402L)
26 # define SOT_PATTERN_GENERATOR_DEPRECATED [[deprecated]]
27 # define SOT_PATTERN_GENERATOR_DEPRECATED_MESSAGE(message) [[deprecated(#message)]]
28 # elif defined(__GNUC__) || defined(__clang__)
29 # define SOT_PATTERN_GENERATOR_DEPRECATED __attribute__ ((deprecated))
30 # define SOT_PATTERN_GENERATOR_DEPRECATED_MESSAGE(message) __attribute__ (( deprecated(#message) ))
32 # if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
33 # define SOT_PATTERN_GENERATOR_DEPRECATED __declspec (deprecated)
34 # define SOT_PATTERN_GENERATOR_DEPRECATED_MESSAGE(message) __declspec ( deprecated(#message) )
37 # define SOT_PATTERN_GENERATOR_DEPRECATED
38 # define SOT_PATTERN_GENERATOR_DEPRECATED_MESSAGE(message)
40 # endif // __cplusplus
42 # if defined(__GNUC__) || defined(__clang__)
43 # ifndef SOT_PATTERN_GENERATOR_PRAGMA
44 # define SOT_PATTERN_GENERATOR_PRAGMA(X) _Pragma(#X)
46 # define SOT_PATTERN_GENERATOR_DEPRECATED_HEADER(MSG) SOT_PATTERN_GENERATOR_PRAGMA(GCC warning MSG)
47 # elif defined(_MSC_VER) && !defined(__INTEL_COMPILER)
48 # define SOT_PATTERN_GENERATOR_STRINGIZE_(MSG) #MSG
49 # define SOT_PATTERN_GENERATOR_STRINGIZE(MSG) SOT_PATTERN_GENERATOR_STRINGIZE_(MSG)
50 # define SOT_PATTERN_GENERATOR_DEPRECATED_HEADER(MSG) \
51 __pragma(message(__FILE__ "(" SOT_PATTERN_GENERATOR_STRINGIZE(__LINE__) ") : Warning: " MSG))
53 # define SOT_PATTERN_GENERATOR_DEPRECATED_HEADER(MSG)