| 732 | } |
| 733 | |
| 734 | static GameValue CmdCall(const GameState* state, GameValuePar lhs, GameValuePar rhs) |
| 735 | { |
| 736 | // lhs becomes _this for the evaluated block. |
| 737 | RString code = rhs; |
| 738 | auto* eval = getEval(state); |
| 739 | GameVarSpace local(eval->GetContext()); |
| 740 | eval->BeginContext(&local); |
| 741 | eval->VarSetLocal("_this", lhs, true); |
| 742 | GameValue result = eval->EvaluateMultiple(code); |
| 743 | eval->EndContext(); |
| 744 | return result; |
| 745 | } |
| 746 | |
| 747 | // No-op: the evaluator has no script scope to terminate. |
| 748 | static GameValue CmdExit(const GameState*) |
nothing calls this directly
no test coverage detected