do while(0)的妙用

在Cocos2d-x的源碼中,常常會有do while(0)的使用,如:code do { CCImage* pImage = new CCImage(); CC_BREAK_IF(NULL == pImage); bRet = pImage->initWithString(text, (int)dimensi
相關文章
相關標籤/搜索