define CC_SYNTHESIZE(varType, varName, funName)\
protected: varType varName;
public: virtual varType get##funName(void) const { return varName; }
public: virtual void set##funName(varType var){ varName = var; }
对于第三个参数的get,set均已设定。
protected: varType varName;
public: virtual varType get##funName(void) const { return varName; }
public: virtual void set##funName(varType var){ varName = var; }
对于第三个参数的get,set均已设定。
本文标题:CC_SYNTHESIZE
本文链接:https://www.haomeiwen.com/subject/myznlttx.html
网友评论