MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / findFunctions

Method findFunctions

src/runtime/context.cpp:595–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593 }
594
595 vector<SimFunction *> Context::findFunctions ( const char * fnname ) const {
596 vector<SimFunction *> res;
597 for ( auto & kv : *tabMnLookup ) {
598 auto fn = kv.second;
599 if ( fn!=nullptr && strcmp(fn->name, fnname)==0 ) {
600 res.push_back(fn);
601 }
602 }
603 return res;
604 }
605
606 SimFunction * Context::findFunction ( const char * fnname ) const {
607 for ( auto & kv : *tabMnLookup ) {

Callers 4

compile_and_runFunction · 0.80
find_void_functionFunction · 0.80
init_dyn_modulesFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected