mirror of https://github.com/axmolengine/axmol.git
adding CC_DEPRECATE(version) macro
This commit is contained in:
parent
1b482b2c3f
commit
21dbc29ad1
|
@ -271,6 +271,13 @@ public: virtual void set##funName(varType var) \
|
|||
#define CC_DEPRECATED_ATTRIBUTE
|
||||
#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))
|
||||
* formatPos - 1-based position of format string argument
|
||||
|
|
Loading…
Reference in New Issue