refactor: improve functions

Closes: #49
This commit is contained in:
2026-07-08 00:19:37 +02:00
parent 7de645d323
commit d49b4f5bc7
10 changed files with 188 additions and 122 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ void executor::push_frame(const mod_h& mod, function function) {
}
std::vector<thing_h> args;
args.reserve(function.param_count());
for (size_t i = 0; i < function.param_count(); ++i)
args.reserve(function.signature().params.size());
while (args.size() < args.capacity())
args.push_back(pop_thing());
switch (function.type()) {