android Fatal signal 4 (SIGILL), code 1, fault addr 0xa455075e in tid 28272 (GLThread 3467)

有返回值的函数没有返回值

不同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;
}

永远不要挑战 编译器的弊端

posted @ 2020-04-28 22:54  YZFHKMS-X  阅读(1605)  评论(0编辑  收藏  举报