MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / getInternal

Method getInternal

test/expected/catch.hpp:12290–12297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12288 class Singleton : SingletonImplT, public ISingleton {
12289
12290 static auto getInternal() -> Singleton* {
12291 static Singleton* s_instance = nullptr;
12292 if( !s_instance ) {
12293 s_instance = new Singleton;
12294 addSingleton( s_instance );
12295 }
12296 return s_instance;
12297 }
12298
12299 public:
12300 static auto get() -> InterfaceT const& {

Callers

nothing calls this directly

Calls 1

addSingletonFunction · 0.85

Tested by

no test coverage detected