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

Function StringEval

engine/Evaluator/express.cpp:1001–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999}
1000
1001[[maybe_unused]] static GameValue StringEval(const GameState* state, GameValuePar oper1)
1002{
1003 GameVarSpace local(state->GetContext());
1004 state->BeginContext(&local);
1005 RString expression = oper1;
1006 GameValue ret = state->Evaluate(expression);
1007 state->EndContext();
1008 return ret;
1009}
1010
1011// parseSimpleArray string — evaluate a string representation of a SQF value
1012// (typically an array literal like "[1,2,3]") and return it as a GameValue.

Callers

nothing calls this directly

Calls 4

BeginContextMethod · 0.80
EndContextMethod · 0.80
GetContextMethod · 0.45
EvaluateMethod · 0.45

Tested by

no test coverage detected