adding CC_DEPRECATE(version) macro

This commit is contained in:
mannewalis 2015-02-17 12:19:36 -08:00
parent 1b482b2c3f
commit 21dbc29ad1
1 changed files with 7 additions and 0 deletions

View File

@ -271,6 +271,13 @@ public: virtual void set##funName(varType var) \
#define CC_DEPRECATED_ATTRIBUTE #define CC_DEPRECATED_ATTRIBUTE
#endif #endif
/*
* macro to mark things deprecated as of a particular version
* can be used with artibrary parameters which are thrown away
* e.g. CC_DEPRECATED(4.0) or CC_DEPRECATED(4.0, "not going to need this anymore") etc.
*/
#define CC_DEPRECATED(...) CC_DEPRECATED_ATTRIBUTE
/* /*
* only certain compiler support __attribute__((format)) * only certain compiler support __attribute__((format))
* formatPos - 1-based position of format string argument * formatPos - 1-based position of format string argument