Skip to content

Commit 0800903

Browse files
committed
Add more compatible macros to cocos2d.h [skip ci]
1 parent a9b1018 commit 0800903

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

core/cocos2d.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,19 @@ namespace cocos2d = axis;
5353

5454
#define USING_NS_CC USING_NS_AX
5555

56+
#define CC_SAFE_RELEASE AX_SAFE_RELEASE
57+
#define CC_SAFE_RELEASE_NULL AX_SAFE_RELEASE_NULL
58+
#define CC_SAFE_DELETE AX_SAFE_DELETE
59+
#define CCASSERT AXASSERT
60+
#define CC_CONSTRUCTOR_ACCESS public
61+
62+
#define CCLOG AXLOG
63+
#define CCLOGINFO AXLOGINFO
64+
#define CCLOGWARN AXLOGWARN
65+
#define CCLOGERROR AXLOGERROR
66+
67+
#define CC_DEPRECATED_ATTRIBUTE AX_DEPRECATED_ATTRIBUTE
68+
69+
#define CC_SAFE_RETAIN AX_SAFE_RETAIN
70+
5671
#endif // __COCOS2D_H__

0 commit comments

Comments
 (0)