MCPcopy Create free account
hub / github.com/Vector35/debugger / CreateForContext

Method CreateForContext

ui/ui.cpp:1573–1581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1571
1572
1573GlobalDebuggerUI* GlobalDebuggerUI::CreateForContext(UIContext* context)
1574{
1575 if (g_contextMap.find(context) != g_contextMap.end())
1576 {
1577 return g_contextMap[context].get();
1578 }
1579 g_contextMap.try_emplace(context, std::make_unique<GlobalDebuggerUI>(context));
1580 return g_contextMap[context].get();
1581}
1582
1583
1584GlobalDebuggerUI* GlobalDebuggerUI::GetForContext(UIContext* context)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected