| 1533 | { |
| 1534 | QiFunc_macro_stop() : QiFunc(1) {} |
| 1535 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1536 | { |
| 1537 | Macro* macro = QiFn::FindMacro(QString::fromStdString(args[0].toString())); |
| 1538 | if (macro) |
| 1539 | { |
| 1540 | macro->thread.stop(); |
| 1541 | return true; |
| 1542 | } |
| 1543 | return false; |
| 1544 | } |
| 1545 | }; |
| 1546 | |
| 1547 | struct QiFunc_proc_find : public QiFunc |
| 1548 | { |
| 1549 | QiFunc_proc_find() : QiFunc(1) {} |
| 1550 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1551 | { |
| 1552 | return Process::find(args[0].toWString(), nullptr); |
| 1553 | } |
| 1554 | }; |
| 1555 | struct QiFunc_proc_close : public QiFunc |
| 1556 | { |
| 1557 | QiFunc_proc_close() : QiFunc(0, 1) {} |
| 1558 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1559 | { |
| 1560 | if (args.empty()) Qi::exit(0); |
| 1561 | return Process::close(args[0].toWString()); |
nothing calls this directly
no test coverage detected