Go to the documentation of this file. 28 #define DECLARE_SINGLETON(CLASSNAME) \ 31 static CLASSNAME* instance(); \ 32 static void destroy(); \ 39 static CLASSNAME* _instance; 57 #define DEFINE_SINGLETON(CLASSNAME) \ 58 CLASSNAME* CLASSNAME::_instance = 0; \ 60 CLASSNAME* CLASSNAME::instance() \ 64 _instance = new CLASSNAME; \ 69 void CLASSNAME::destroy() \