cocos2d-x  3.5
 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:217
#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:217
#define CC_ASSERT(cond)
Definition: CCPlatformDefine-android.h:52
local
CCB_MEMBERVARIABLEASSIGNER_GLUE
(   local,
  local,
  local,
  local 
)
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:217
#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
var
CCB_MEMBERVARIABLEASSIGNER_GLUE_WEAK
(   var,
  var,
  var,
  var 
)
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
local
CCB_MEMBERVARIABLEASSIGNER_GLUE_WEAK
(   local,
  local,
  local,
  local 
)
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