amaiorano / hsm

C++ framework library to simplify state-driven code
MIT License
110 stars 39 forks source link

Add deprecation macro #5

Closed amaiorano closed 6 years ago

amaiorano commented 7 years ago
#ifdef __GNUC__
#define HSM_DEPRECATED(MESSAGE) __attribute__((deprecated("DEPRECATED: " MESSAGE)))
#elif defined(_MSC_VER)
#define HSM_DEPRECATED(MESSAGE) __declspec(deprecated("DEPRECATED: " MESSAGE))
#else
#pragma message("Implement HSM_DEPRECATED for this compiler")
#define HSM_DEPRECATED
#endif