Merge branch 'track' of https://github.com/leon-li/cocos2d-x into leon-li-track

This commit is contained in:
minggo 2011-01-13 13:52:20 +08:00
commit 6043008a11
5 changed files with 39 additions and 38 deletions

View File

@ -198,8 +198,8 @@ void CCScheduler::unscheduleAllTimers()
void CCScheduler::scheduleSelector(SEL_SCHEDULE pfnSelector, SelectorProtocol *pTarget, float fInterval, bool bPaused)
{
assert(pfnSelector != NULL);
assert(pTarget != NULL);
assert(pfnSelector);
assert(pTarget);
tHashSelectorEntry *pElement = NULL;
HASH_FIND_INT(m_pHashForSelectors, &pTarget, pElement);
@ -256,13 +256,13 @@ void CCScheduler::scheduleSelector(SEL_SCHEDULE pfnSelector, SelectorProtocol *p
void CCScheduler::unscheduleSelector(SEL_SCHEDULE pfnSelector, SelectorProtocol *pTarget)
{
// explicity handle nil arguments when removing an object
if (pTarget == NULL || pfnSelector == NULL)
if (pTarget == 0 || pfnSelector == 0)
{
return;
}
assert(pTarget != NULL);
assert(pfnSelector != NULL);
assert(pTarget);
assert(pfnSelector);
tHashSelectorEntry *pElement = NULL;
HASH_FIND_INT(m_pHashForSelectors, &pTarget, pElement);

View File

@ -851,7 +851,7 @@ void CCNode::schedule(SEL_SCHEDULE selector, ccTime interval)
void CCNode::unschedule(SEL_SCHEDULE selector)
{
// explicit nil handling
if (selector == NULL)
if (selector == 0)
return;
CCScheduler::sharedScheduler()->unscheduleSelector(selector, this);

View File

@ -171,7 +171,7 @@ typedef enum {
class CCLabel;
class CCScene;
class cocos2d::CCXEGLView;
class CCXEGLView;
/**
@brief Class that creates and handle the main Window and manages how

View File

@ -64,5 +64,5 @@ protected:
}//namespace cocos2d
#endif __CCRADIAL_TRANSITION_H__
#endif //__CCRADIAL_TRANSITION_H__

View File

@ -28,6 +28,7 @@ THE SOFTWARE.
#include "NSSet.h"
#include "CCDirector.h"
#include "ccMacros.h"
#include "CCTouchDispatcher.h"
#include <stdlib.h>