Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ singletonPtr
Method
singletonPtr
source/game/StarRoot.cpp:63–65 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
61
}
62
63
Root* Root::singletonPtr() {
64
return dynamic_cast<Root*>(s_singleton.load());
65
}
66
67
Root& Root::singleton() {
68
auto ptr = singletonPtr();
Callers
nothing calls this directly
Calls
1
load
Method · 0.45
Tested by
no test coverage detected