Merge topic 'deprecation-macro-refactor'
cdf55d5
GEH: Make each element of the deprecation macros overridable.80d5090
GEH: Use the macro for the deprecation attribute after definiting it.
This commit is contained in:
commit
c76b380181
|
@ -23,8 +23,14 @@
|
||||||
|
|
||||||
#ifndef @DEPRECATED_MACRO_NAME@
|
#ifndef @DEPRECATED_MACRO_NAME@
|
||||||
# define @DEPRECATED_MACRO_NAME@ @DEFINE_DEPRECATED@
|
# define @DEPRECATED_MACRO_NAME@ @DEFINE_DEPRECATED@
|
||||||
# define @DEPRECATED_MACRO_NAME@_EXPORT @EXPORT_MACRO_NAME@ @DEFINE_DEPRECATED@
|
#endif
|
||||||
# define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEFINE_DEPRECATED@
|
|
||||||
|
#ifndef @DEPRECATED_MACRO_NAME@_EXPORT
|
||||||
|
# define @DEPRECATED_MACRO_NAME@_EXPORT @EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef @DEPRECATED_MACRO_NAME@_NO_EXPORT
|
||||||
|
# define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#cmakedefine01 DEFINE_NO_DEPRECATED
|
#cmakedefine01 DEFINE_NO_DEPRECATED
|
||||||
|
|
Loading…
Reference in New Issue