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

This commit is contained in:
YAMAMOTO Takashi 2022-10-12 21:06:38 +09:00 committed by GitHub
parent 1c89a37899
commit 5a93f0d667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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