MCPcopy Create free account
hub / github.com/devosoft/avida / lookupFunction

Method lookupFunction

avida-core/source/script/cSemanticASTVisitor.cc:1009–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007
1008
1009inline bool cSemanticASTVisitor::lookupFunction(const cString& name, int& fun_id, bool& global) const
1010{
1011 if (m_cur_symtbl->LookupFunction(name, fun_id)) {
1012 global = false;
1013 return true;
1014 } else if (m_cur_symtbl != m_global_symtbl && m_global_symtbl->LookupFunction(name, fun_id)) {
1015 global = true;
1016 return true;
1017 }
1018
1019 return false;
1020}
1021
1022
1023

Callers

nothing calls this directly

Calls 1

LookupFunctionMethod · 0.45

Tested by

no test coverage detected