#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
above code not working in my eclipse. why ?
What does it mean “not working”?
i mean , eclipse skipping that full if condition.
below is my code. for refrence
`#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
statusLabel = CCLabelTTF::create(“LogIn”, “Arial”, 30,
CCSizeMake(30*5, 0), kCCTextAlignmentCenter,kCCVerticalTextAlignmentTop);
statusLabel->setColor(ccBLUE);
statusLabel->setPosition(ccp(visibleSize.width/2 , visibleSize.height/2 -260 ));
this->addChild(statusLabel, 1);
CCMenu* pMenu2 = CCMenu::create(NULL);
pMenu2->setPosition(ccp(visibleSize.width/2 + origin.x, visibleSize.height/2 + origin.y));
this->addChild(pMenu2, 1);
// add Facebook1
vector<string> menuVect;
menuVect.push_back("login");
menuVect.push_back("logout");
menuVect.push_back("getStatus");
menuVect.push_back("post");
menuVect.push_back("pickFriend");
menuVect.push_back("sendRequests");
for (int i = 0; i<menuVect.size(); i++)
{
CCMenuItemFont * ItemFont = CCMenuItemFont::create(menuVect[i].c_str(), this, menu_selector(MainMenuScene::menuCloseCallback));
ItemFont->setFontSize(30);
ItemFont->setTag(i);
pMenu->addChild(ItemFont);
}
pMenu->alignItemsVerticallyWithPadding(10);
CCDirector::sharedDirector()->getScheduler()->scheduleSelector(schedule_selector(MainMenuScene::FacebookCallback), this, 1.0, false);
#endif`