From d9b3967daa23621def6493e35d0cf84e021f1b1f Mon Sep 17 00:00:00 2001 From: Walzer Date: Wed, 7 Jul 2010 01:41:29 +0000 Subject: [PATCH] --- cocos2dx/include/Cocos2dDefine.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/cocos2dx/include/Cocos2dDefine.h b/cocos2dx/include/Cocos2dDefine.h index a30739c304..acf1bf43d5 100644 --- a/cocos2dx/include/Cocos2dDefine.h +++ b/cocos2dx/include/Cocos2dDefine.h @@ -25,19 +25,19 @@ THE SOFTWARE. #ifndef __COCOS2D_DEFINE_H__ #define __COCOS2D_DEFINE_H__ -#define GET_VARIABLE(varType, varName)\ - public inline varType get##varName() { return varName; }; - -#define SET_VARIABLE(varType, varName)\ - public inline void set##varName(varType funVar) { varName = funVar; }; - -#define VAR_PROPERTY_READONLY(varType, varName)\ - protected varType m_##varName;\ - GET_VARIABLE(varType, varName) - -#define VAR_PROPERTY_READWRITE(varType, varName)\ - protected varType m_##varName;\ - GET_VARIABLE(varType, varName)\ - SET_VARIABLE(varTYPE, varName) +#define GET_VARIABLE(varType, varName, funName)\ + public inline varType get##funName() { return varName; }; + +#define SET_VARIABLE(varType, varName, funName)\ + public inline void set##funName(varType funVar) { varName = funVar; }; + +#define VAR_PROPERTY_READONLY(varType, varName, funName)\ + protected varType varName;\ + GET_VARIABLE(varType, varName, funName) + +#define VAR_PROPERTY_READWRITE(varType, varName, funName)\ + protected varType varName;\ + GET_VARIABLE(varType, varName, funName)\ + SET_VARIABLE(varTYPE, varName, funName) #endif // __COCOS2D_DEFINE_H__ \ No newline at end of file