소스 검색

Update export_native_api.md

Wang Xin 5 년 전
부모
커밋
881b46cfc8
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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**: