refactor(furvm): remove executor handle

This commit is contained in:
2026-08-13 14:10:43 +02:00
parent 713aec199f
commit 21e92dcb4b
6 changed files with 21 additions and 47 deletions
+4 -4
View File
@@ -80,11 +80,11 @@ int main(int argc, char** argv) {
std::cout << '\n';
});
furvm::executor_h executor = context->emplace_executor(context);
executor->push_frame(mod, *mainFunc);
auto& executor = context->allocate_executor();
executor.push_frame(mod, *mainFunc);
while ((executor->flags() & furvm::executor_flags::Done) != furvm::executor_flags::Done) {
executor->step();
while ((executor.flags() & furvm::executor_flags::Done) != furvm::executor_flags::Done) {
executor.step();
}
return 0;