#define ICT_INSTANCE_CONSTRUCTOR(Module) private:\
static Module* _instance;\
Module(){};\
public:\
static Module* instance()\
{\
if(_instance == NULL)\
{\
_instance = new Module();\
}\
return _instance;\
};\
单例define
最新推荐文章于 2022-04-16 15:52:38 发布