mirror of
https://github.com/u0u0/Cocos2d-Lua-Community.git
synced 2026-05-06 22:01:44 +08:00
Merge pull request #28 from walkingon/master
修复win32平台没有CC_FORMAT_PRINTF宏定义
This commit is contained in:
@@ -296,6 +296,8 @@ private: varType varName; public: virtual inline varType get##funName() const {
|
||||
#elif defined(__has_attribute)
|
||||
#if __has_attribute(format)
|
||||
#define CC_FORMAT_PRINTF(formatPos, argPos) __attribute__((__format__(printf, formatPos, argPos)))
|
||||
#else
|
||||
#define CC_FORMAT_PRINTF(formatPos, argPos)
|
||||
#endif // __has_attribute(format)
|
||||
#else
|
||||
#define CC_FORMAT_PRINTF(formatPos, argPos)
|
||||
|
||||
Reference in New Issue
Block a user