Browse Source

Update export_native_api.md

Wang Xin 5 years ago
parent
commit
881b46cfc8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      doc/export_native_api.md

+ 3 - 0
doc/export_native_api.md

@@ -76,6 +76,9 @@ if (!wasm_runtime_register_natives("env",
     goto fail1;
     goto fail1;
 }
 }
 
 
+// natives registeration must be done before loading WASM modules
+module = wasm_runtime_load(buffer, size, error_buf, sizeof(error_buf));
+
 ```
 ```
 
 
 **Function signature**:
 **Function signature**: