mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-18 11:45:25 -04:00
Define a macro for deprecated attribute
This commit is contained in:
parent
19154ec765
commit
f5a2b5fb57
@ -33,4 +33,10 @@
|
|||||||
#cmakedefine SDL2PP_WITH_EXPERIMENTAL_OPTIONAL
|
#cmakedefine SDL2PP_WITH_EXPERIMENTAL_OPTIONAL
|
||||||
#cmakedefine SDL2PP_WITH_DEPRECATED
|
#cmakedefine SDL2PP_WITH_DEPRECATED
|
||||||
|
|
||||||
|
#if defined(SDL2PP_WITH_DEPRECATED)
|
||||||
|
# define SDL2PP_DEPRECATED [[deprecated]]
|
||||||
|
#else
|
||||||
|
# define SDL2PP_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user