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
+1 -1
View File
@@ -56,7 +56,7 @@ int main(int argc, char** argv) {
std::cerr << "Failed to load module " << argv[1] << ": " << ex.what() << '\n';
return 1;
}
ctx.executor = ctx.context->emplace_executor(ctx.context);
ctx.executor = &ctx.context->allocate_executor();
ctx.mainFunction = ctx.mod->function_at("main", furvm::function_sig{});
ctx.mod->set_native_function("println", [](furvm::executor& executor) {