feat: enable to show message for deprecated()

This commit is contained in:
ToruNiina
2019-03-18 16:28:27 +09:00
parent ccf03d9291
commit 3adba237b8

View File

@@ -8,11 +8,11 @@
#include <sstream> #include <sstream>
#if __cplusplus >= 201402L #if __cplusplus >= 201402L
# define TOML11_MARK_AS_DEPRECATED [[deprecated]] # define TOML11_MARK_AS_DEPRECATED(msg) [[deprecated(msg)]]
#elif defined(__GNUC__) #elif defined(__GNUC__)
# define TOML11_MARK_AS_DEPRECATED __attribute__((deprecated)) # define TOML11_MARK_AS_DEPRECATED(msg) __attribute__((deprecated(msg)))
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
# define TOML11_MARK_AS_DEPRECATED __declspec(deprecated) # define TOML11_MARK_AS_DEPRECATED(msg) __declspec(deprecated(msg))
#else #else
# define TOML11_MARK_AS_DEPRECATED # define TOML11_MARK_AS_DEPRECATED
#endif #endif