code/DendyFoundation/DebugTools/DebugStack.cpp
void TheDebugStack::destroyInstance() {
      static TheDebugStack* debugStack = &getInstance();
      if (debugStack != nullptr) {
         delete debugStack;
      }
   }
//----------------------------------------------------------------------------------------------------------------------------------------//
// Singleton pattern stuff (destruction)
//----------------------------------------------------------------------------------------------------------------------------------------//
Singleton pattern stuff (destruction)
Singleton pattern stuff ( destruction )
void TheDebugStack::destroyInstance() {
      static TheDebugStack* debugStack = &getInstance();
      if (debugStack != nullptr) {
         delete debugStack;
      }
   }
void TheDebugStack :: destroyInstance ( ) { static TheDebugStack * debugStack = & getInstance ( ) ; if ( debugStack != nullptr ) { delete debugStack ; } }
Singleton pattern stuff (destruction)
Singleton pattern stuff ( destruction )