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

Method exec

source/src/scriptinterpreter.cpp:507–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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/*
518any value

Callers

nothing calls this directly

Calls 4

localValueMethod · 0.80
sizeMethod · 0.45
setValueMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected