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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user