feat(furvm): add import function

This commit is contained in:
2026-06-12 09:03:46 +02:00
parent 3f6d0adef6
commit f0fe6b4179
3 changed files with 35 additions and 3 deletions
+5 -1
View File
@@ -118,6 +118,10 @@ void executor::step() {
switch (function->type()) {
case function_t::Normal: push_frame(function); break;
case function_t::Native: function->native()(*this); break;
case function_t::Import: {
const mod_p& impMod = m_context->m_modules.at(function->imported_module());
push_frame(impMod->function_at(function->imported_function()));
} break;
}
} break;
case instruction_t::Return: {
@@ -134,4 +138,4 @@ void executor::step() {
}
}
} // namespace furvm
} // namespace furvm
+1 -1
View File
@@ -49,4 +49,4 @@ int main(void) {
return 0;
}
#endif // LUBFURVM
#endif // LUBFURVM