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

Method exec

source/src/scriptinterpreter.cpp:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154{
155 QiFunc_time_s() : QiFunc(0, 4) {}
156 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
157 {
158 if (args.empty()) return time(nullptr);
159 return TimeToS(args[0].toInteger(),
160 args.size() > 1 ? args[1].toInteger() : 0,
161 args.size() > 2 ? args[2].toInteger() : 0,
162 args.size() > 3 ? args[3].toInteger() : 0
163 );
164 }
165};
166/*
167int hour

Callers

nothing calls this directly

Calls 3

TimeToSFunction · 0.85
toIntegerMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected