do{} while(0)
摘要:
cocos2d-x 里面看到比较怪的代码CCScene* HelloWorld::scene(){ CCScene * scene = NULL; do { // 'scene' is an autorelease object scene = CCScene::node(); CC_BREAK_IF(! scene); // 'layer' is an autorelease object HelloWorld *layer = HelloWorld::node(); CC_BREAK_I... 阅读全文
posted @ 2012-02-08 23:16 Spray 阅读(310) 评论(0) 推荐(0) 编辑