Merge pull request #2074 from minggo/iss1686-synchronize

issue #1686:add () in defining a macro in RenderTextureTest.cpp
This commit is contained in:
minggo 2013-03-01 02:38:27 -08:00
commit 473538f6a8
1 changed files with 4 additions and 4 deletions

View File

@ -23,10 +23,10 @@ static NEWTESTFUNC createFunctions[] = {
CF(SpriteRenderTextureBug),
};
#define MAX_LAYER sizeof(createFunctions)/sizeof(createFunctions[0])
#define MAX_LAYER (sizeof(createFunctions)/sizeof(createFunctions[0]))
static int sceneIdx = -1;
CCLayer* nextTestCase()
static CCLayer* nextTestCase()
{
sceneIdx++;
sceneIdx = sceneIdx % MAX_LAYER;
@ -37,7 +37,7 @@ CCLayer* nextTestCase()
return pLayer;
}
CCLayer* backTestCase()
static CCLayer* backTestCase()
{
sceneIdx--;
int total = MAX_LAYER;
@ -50,7 +50,7 @@ CCLayer* backTestCase()
return pLayer;
}
CCLayer* restartTestCase()
static CCLayer* restartTestCase()
{
CCLayer* pLayer = (createFunctions[sceneIdx])();
pLayer->autorelease();