cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCBMemberVariableAssigner.h File Reference

Classes

class  CCBMemberVariableAssigner
 

Namespaces

 cocosbuilder
 

Macros

#define CCB_MEMBERVARIABLEASSIGNER_GLUE(TARGET, MEMBERVARIABLENAME, MEMBERVARIABLETYPE, MEMBERVARIABLE)
#define CCB_MEMBERVARIABLEASSIGNER_GLUE_WEAK(TARGET, MEMBERVARIABLENAME, MEMBERVARIABLETYPE, MEMBERVARIABLE)

Macro Definition Documentation

#define
CCB_MEMBERVARIABLEASSIGNER_GLUE
(   TARGET,
  MEMBERVARIABLENAME,
  MEMBERVARIABLETYPE,
  MEMBERVARIABLE 
)
Value:
if (pTarget == TARGET && 0 == strcmp(pMemberVariableName, (MEMBERVARIABLENAME))) { \
MEMBERVARIABLETYPE pOldVar = MEMBERVARIABLE; \
MEMBERVARIABLE = dynamic_cast<MEMBERVARIABLETYPE>(pNode); \
CC_ASSERT(MEMBERVARIABLE); \
if (pOldVar != MEMBERVARIABLE) { \
CC_SAFE_RELEASE(pOldVar); \
MEMBERVARIABLE->retain(); \
} \
return true; \
}
#define CC_SAFE_RELEASE(p)
Definition: CCPlatformMacros.h:205
#define CC_ASSERT(cond)
Definition: CCPlatformDefine-android.h:52
var CCB_MEMBERVARIABLEASSIGNER_GLUE (   var,
  var,
  var,
  var 
)
Value:
if (pTarget == TARGET && 0 == strcmp(pMemberVariableName, (MEMBERVARIABLENAME))) { \
MEMBERVARIABLETYPE pOldVar = MEMBERVARIABLE; \
MEMBERVARIABLE = dynamic_cast<MEMBERVARIABLETYPE>(pNode); \
CC_ASSERT(MEMBERVARIABLE); \
if (pOldVar != MEMBERVARIABLE) { \
CC_SAFE_RELEASE(pOldVar); \
MEMBERVARIABLE->retain(); \
} \
return true; \
}
#define CC_SAFE_RELEASE(p)
Definition: CCPlatformMacros.h:205
#define CC_ASSERT(cond)
Definition: CCPlatformDefine-android.h:52
#define
CCB_MEMBERVARIABLEASSIGNER_GLUE_WEAK
(   TARGET,
  MEMBERVARIABLENAME,
  MEMBERVARIABLETYPE,
  MEMBERVARIABLE 
)
Value:
if (pTarget == TARGET && 0 == strcmp(pMemberVariableName, MEMBERVARIABLENAME)) { \
MEMBERVARIABLE = dynamic_cast<MEMBERVARIABLETYPE>(pNode); \
CC_ASSERT(MEMBERVARIABLE); \
return true; \
}
#define CC_ASSERT(cond)
Definition: CCPlatformDefine-android.h:52