feat: implement module loading

I couldn't care less to commit all the changes separately after fight
with this stupid codebase.
Also I am closing the issue since serializing contexts meant doing
something like jars which I don't want to do right now. I'll reopen the
issue though for sure clueless.

Closes: #23
This commit is contained in:
2026-07-04 18:41:06 +02:00
parent 100c542fe1
commit f89f643870
9 changed files with 352 additions and 50 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ void executor::push_frame(const mod_h& mod, function function) {
} break;
case function_t::Native: {
m_frames.emplace((struct executor::frame){ mod, 0, m_stack.size(), std::move(args) });
modInst->get_native_function(function.name())(*this);
modInst->get_native_function(function.native())(*this);
m_frames.pop();
} break;
default: throw std::runtime_error("unexpected function type");