有返回值的函数没有返回值
不同CPU的处理能力是不一样的
如:
bool Function::init() { if (!LayerColor::init()) { return false; } auto display = Director::getInstance()->getVisibleSize(); Vec2 origin = Director::getInstance()->getVisibleOrigin(); this->setName("Function"); auto scrollView = this->initScrollView(); auto layer = this->CreateScrollViewLayer(); this->CreateFunc(); //return true; }
永远不要挑战 编译器的弊端