CREATE_FUNC(__TYPE__)代码如下:
static__TYPE__*create()\
{\
__TYPE__*pRet=new__TYPE__();\
if(pRet&&pRet->init())\
{\
pRet->autorelease();\
returnpRet;\
}\
else\
{\
deletepRet;\
pRet=NULL;\
returnNULL;\
}\
}
原文链接:https://www.f2er.com/cocos2dx/342155.html