19 #ifndef __SINGLETON_H__ 20 #define __SINGLETON_H__ 28 static T* ptrSingleton;
33 CS_ASSERT(ptrSingleton == 0);
40 CS_ASSERT(ptrSingleton == 0);
41 ptrSingleton = (T*) (
this);
46 CS_ASSERT(ptrSingleton != 0);
static T & GetSingleton(void)
static T * GetSingletonPtr(void)