MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / runFunction

Method runFunction

src/logic/ScriptEngine.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79int32_t ScriptEngine::runFunction(const std::string& fname, bool clearDataStack)
80{
81 assert(getVM().getDATFile().hasSymbolName(fname));
82 return runFunctionBySymIndex(getVM().getDATFile().getSymbolIndexByName(fname), clearDataStack);
83}
84
85int32_t ScriptEngine::runFunctionBySymIndex(size_t symIdx, bool clearDataStack)
86{

Callers 2

canUseMethod · 0.80
assessTalkMethod · 0.80

Calls 1

getSymbolIndexByNameMethod · 0.80

Tested by

no test coverage detected