Просмотр исходного кода

wasm_export.h: Add comments on wasm_runtime_register_natives (#1580)

YAMAMOTO Takashi 3 лет назад
Родитель
Сommit
5a93f0d667
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      core/iwasm/include/wasm_export.h

+ 6 - 0
core/iwasm/include/wasm_export.h

@@ -922,6 +922,12 @@ wasm_runtime_get_native_addr_range(wasm_module_inst_t module_inst,
 /**
  * Register native functions with same module name
  *
+ * Note: The array `native_symbols` should not be read-only because the
+ * library can modify it in-place.
+ *
+ * Note: After successful call of this function, the array `native_symbols`
+ * is owned by the library.
+ *
  * @param module_name the module name of the native functions
  * @param native_symbols specifies an array of NativeSymbol structures which
  *        contain the names, function pointers and signatures