MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getSingletons

Function getSingletons

extlibs/catch/include/catch/catch.hpp:12947–12952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12945
12946 namespace {
12947 static auto getSingletons() -> std::vector<ISingleton*>*& {
12948 static std::vector<ISingleton*>* g_singletons = nullptr;
12949 if( !g_singletons )
12950 g_singletons = new std::vector<ISingleton*>();
12951 return g_singletons;
12952 }
12953 }
12954
12955 ISingleton::~ISingleton() {}

Callers 2

addSingletonFunction · 0.85
cleanupSingletonsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected