MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / assertCore

Method assertCore

src/core/Module.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void Module::assertCore() const {
67 if (!m_core) {
68 geode::utils::terminate(
69 fmt::format("Globed module {} ({}) by {} called a module function before registering the mod with the core",
70 this->name(), this->id(), this->author()),
71 Mod::get()
72 );
73 }
74}
75
76
77}

Callers 2

enableMethod · 0.95
disableMethod · 0.95

Calls 4

getFunction · 0.50
nameMethod · 0.45
idMethod · 0.45
authorMethod · 0.45

Tested by

no test coverage detected