Merge pull request #28 from walkingon/master

修复win32平台没有CC_FORMAT_PRINTF宏定义
This commit is contained in:
u0u0
2024-12-11 09:48:00 +08:00
committed by GitHub

View File

@@ -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)