From 881b46cfc87a331fefb3408f43c96570e4bd13e4 Mon Sep 17 00:00:00 2001 From: Wang Xin Date: Thu, 5 Mar 2020 12:48:29 +0800 Subject: [PATCH] Update export_native_api.md --- doc/export_native_api.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/export_native_api.md b/doc/export_native_api.md index 970af75f2..04c914e2d 100644 --- a/doc/export_native_api.md +++ b/doc/export_native_api.md @@ -76,6 +76,9 @@ if (!wasm_runtime_register_natives("env", goto fail1; } +// natives registeration must be done before loading WASM modules +module = wasm_runtime_load(buffer, size, error_buf, sizeof(error_buf)); + ``` **Function signature**: