MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / StringCall

Function StringCall

engine/Evaluator/express.cpp:723–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723static GameValue StringCall(const GameState* state, GameValuePar oper1, GameValuePar oper2)
724{
725 GameVarSpace local(state->GetContext());
726 state->BeginContext(&local);
727 state->VarSetLocal("_this", oper1, true);
728 RString expression = oper2;
729 GameValue ret = state->EvaluateMultiple(expression);
730 state->EndContext();
731 return ret;
732}
733
734static GameValue StringLocal(const GameState* state, GameValuePar oper1)
735{

Callers

nothing calls this directly

Calls 5

BeginContextMethod · 0.80
VarSetLocalMethod · 0.80
EvaluateMultipleMethod · 0.80
EndContextMethod · 0.80
GetContextMethod · 0.45

Tested by

no test coverage detected