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

Function testScriptParamsEqual

Source/Scripting/scriptparams.cpp:652–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652bool testScriptParamsEqual(const ScriptParamMap &spmA, const ScriptParamMap &spmB) {
653 // proceed to compare maps here
654 if (spmA.size() != spmB.size())
655 return false; // differing sizes, they are not the same
656
657 ScriptParamMap::const_iterator i, j;
658 for (i = spmA.begin(), j = spmB.begin(); i != spmA.end(); ++i, ++j) {
659 if (*i != *j)
660 return false;
661 }
662
663 return true;
664}

Callers 1

ApplyScriptParamsMethod · 0.85

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected