CCPointArray* CCPointArray::create(unsigned int capacity) { CCPointArray* ret = new CCPointArray(); if (ret) { if (ret->initWithCapacity(capacity)) { ret->autorelease(); } else { delete ret; ret = NULL; } } return ret; }
NS_CC_BEGIN /* * Implementation of CCPointArray */ CCPointArray* CCPointArray::create(unsigned int capacity) { CCPointArray* ret = new CCPointArray(); if (ret) { if (ret->initWithCapacity(capacity)) { ret->autorelease(); } else { delete ret; ret = NULL; } } return ret; }