Define a macro for deprecated attribute

This commit is contained in:
Dmitry Marakasov 2014-12-25 22:26:51 +03:00
parent 19154ec765
commit f5a2b5fb57

View File

@ -33,4 +33,10 @@
#cmakedefine SDL2PP_WITH_EXPERIMENTAL_OPTIONAL
#cmakedefine SDL2PP_WITH_DEPRECATED
#if defined(SDL2PP_WITH_DEPRECATED)
# define SDL2PP_DEPRECATED [[deprecated]]
#else
# define SDL2PP_DEPRECATED
#endif
#endif