MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetFunctionID

Method GetFunctionID

Source/Scripting/angelscript/asmodule.cpp:1706–1716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1704}
1705
1706asIScriptFunction* ASModule::GetFunctionID(const std::string& function_name) {
1707 std::map<std::string, asIScriptFunction*>::const_iterator iter = func_map_.find(function_name);
1708 asIScriptFunction* func;
1709 if (iter == func_map_.end()) {
1710 func = module_->GetFunctionByDecl(function_name.c_str());
1711 func_map_.insert(std::pair<std::string, asIScriptFunction*>(function_name, func));
1712 } else {
1713 func = iter->second;
1714 }
1715 return func;
1716}
1717
1718asIScriptModule* ASModule::GetInternalScriptModule() {
1719 return module_;

Callers 4

LoadExpectedFunctionsMethod · 0.80
HasFunctionMethod · 0.80
CallScriptFunctionMethod · 0.80

Calls 5

GetFunctionByDeclMethod · 0.80
findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected