opam-2.0.0
Vova 3 years ago
parent 3197ef0c43
commit a35f31a406

@ -131,6 +131,8 @@ M3Result FindAndLinkFunction (IM3Module io_module,
{
M3Result result = m3Err_functionLookupFailed;
_throwif(m3Err_moduleNotLinked, !(io_module->runtime));
bool wildcardModule = (strcmp (i_moduleName, "*") == 0);
for (u32 i = 0; i < io_module->numFunctions; ++i)
@ -151,7 +153,7 @@ M3Result FindAndLinkFunction (IM3Module io_module,
}
}
}
_catch:
return result;
}

@ -138,6 +138,7 @@ d_m3ErrorConst (tooManyMemorySections, "only one memory per module is s
d_m3ErrorConst (tooManyArgsRets, "too many arguments or return values")
// link errors
d_m3ErrorConst (moduleNotLinked, "attempting to use module that is not loaded")
d_m3ErrorConst (moduleAlreadyLinked, "attempting to bind module to multiple runtimes")
d_m3ErrorConst (functionLookupFailed, "function lookup failed")
d_m3ErrorConst (functionImportMissing, "missing imported function")

Loading…
Cancel
Save