MCPcopy 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
63Root* Root::singletonPtr() {
64 return dynamic_cast<Root*>(s_singleton.load());
65}
66
67Root& Root::singleton() {
68 auto ptr = singletonPtr();

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected