Sfoglia il codice sorgente

Update export_native_api.md

Wang Xin 5 anni fa
parent
commit
881b46cfc8
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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;
 }
 
+// natives registeration must be done before loading WASM modules
+module = wasm_runtime_load(buffer, size, error_buf, sizeof(error_buf));
+
 ```
 
 **Function signature**: