| 505 | { |
| 506 | QiFunc_value() : QiFunc(1, 2) {} |
| 507 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter* inter) const override |
| 508 | { |
| 509 | if (args.size() > 1) |
| 510 | { |
| 511 | inter->setValue(args[0].toString(), args[1]); |
| 512 | return args[1]; |
| 513 | } |
| 514 | return inter->localValue(args[0].toString()); |
| 515 | } |
| 516 | }; |
| 517 | /* |
| 518 | any value |
nothing calls this directly
no test coverage detected