MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:1535–1558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
1547struct 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};
1555struct 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());

Callers

nothing calls this directly

Calls 6

findDeviceMethod · 0.80
getOutputDefaultMethod · 0.80
setVolumeMethod · 0.80
sizeMethod · 0.45
toWStringMethod · 0.45
toNumberMethod · 0.45

Tested by

no test coverage detected