From e95c3b91507a1055581f83e582a48d4ddd484a80 Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 25 Jul 2013 21:15:24 +0800 Subject: [PATCH] issue #2430:make functions really deprecated --- cocos2dx/include/CCDeprecated.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cocos2dx/include/CCDeprecated.h b/cocos2dx/include/CCDeprecated.h index 0b2c6600a4..40cb1c49d7 100644 --- a/cocos2dx/include/CCDeprecated.h +++ b/cocos2dx/include/CCDeprecated.h @@ -526,8 +526,10 @@ CC_DEPRECATED_ATTRIBUTE static inline AffineTransform CCAffineTransformInvert(co return AffineTransformInvert(t); } -#define CCAffineTransformIdentity AffineTransformIdentity - +CC_DEPRECATED_ATTRIBUTE static inline AffineTransform CCAffineTransformIdentity() +{ + return AffineTransformMakeIdentity(); +} // CC prefix compatibility CC_DEPRECATED_ATTRIBUTE typedef Object CCObject;