<p></p>
<p>Btw: Super nice would be a convenience function such as <code>int wamr_run(void *bytecode, size_t bytecode_len, int argc, const char **argv)</code>.</p>
<p>It would be super nice if the return value would be the return code of the <code>main</code> in the WASM bytecode. If the WASM binary uses the same error codes as the ones used to indicate failures in running the VM, it will be impossible to distinguish between the two. But I assume that in most use cases it doesn't matter what failed and this feels a lot more convenient. (And a more verbose convenience function could be provided if there is a use case.)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/15329#issuecomment-924777462">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYB46ZPC7BOOHZBJGPTUDGS2PANCNFSM4TCQEOAA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABE7WYHOIX2SL6EYLQHBTNLUDGS2PA5CNFSM4TCQEOAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG4PPX5Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/15329#issuecomment-924777462",
"url": "https://github.com/RIOT-OS/RIOT/pull/15329#issuecomment-924777462",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>