refactor(furvm): change unique pointer to shared pointer for module

This commit is contained in:
2026-06-06 22:51:44 +02:00
parent a869f71f3a
commit 5ace40b6aa
2 changed files with 9 additions and 9 deletions
+2 -1
View File
@@ -17,9 +17,10 @@ static constexpr std::array<furvm::byte, 3> s_bytecode = {
int main(void) {
auto context = std::make_shared<furvm::context>();
const auto& mainModule = context->emplace(s_bytecode.begin(), s_bytecode.end());
auto mainModule = context->emplace(s_bytecode.begin(), s_bytecode.end());
auto executor = furvm::executor::create(context);
executor->push_frame(mainModule, 0);
return 0;
}