doc: wasm_functype_new takes ownership of its input (#3957)

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
罗泽轩
2022-03-23 12:04:57 +08:00
committed by GitHub
parent 4d5bd5f90e
commit 1ae8ba2d5d

View File

@@ -359,6 +359,8 @@
* \brief Creates a new function type with the provided parameter and result * \brief Creates a new function type with the provided parameter and result
* types. * types.
* *
* This function takes ownership of the `params` and `results` arguments.
*
* The caller is responsible for deleting the returned value. * The caller is responsible for deleting the returned value.
* *
* \fn const wasm_valtype_vec_t* wasm_functype_params(const wasm_functype_t *); * \fn const wasm_valtype_vec_t* wasm_functype_params(const wasm_functype_t *);