这个obj是CCSprite*时,即使已经初始化,也会被断言~,求解释
CCAssert(obj == NULL, “error”)
不成立才报错
— Begin quote from ____
摔就摔了 发表于 2012-10-12 08:14 url
CCAssert 在android平台的 会直接闪退,建议在封装CCAssert吧
— End quote
CCAssert 不?吧,我用cocos2d-x 2.02不?出?你?的情?
- 本帖最后由 yiplee 于 2012-10-11 20:51 编辑 *
— Begin quote from ____
Rocky 发表于 2012-10-11 20:07 url
不是成立才报错的嘛~~~尼玛这个这么坑爹~
— End quote
这个 CCAssert 跟 ios 上的 NSAssert 不一样?我以为是一样的。
我没用过 cocos2d-x。
已经初始化,那 obj == NULL 不成立,于是报错:“error”。
— Begin quote from ____
yiplee 发表于 2012-10-11 19:01 url
已经初始化,那 obj == NULL 不成立,于是报错:“error”。
— End quote
不是成立才报错的嘛~~~尼玛这个这么坑爹~