mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-04-19 02:28:43 +00:00
Update wasm_application.h
Add comments for the functions.
This commit is contained in:
parent
2c91c28c51
commit
03aab545c6
|
|
@ -26,10 +26,33 @@ extern "C" {
|
||||||
|
|
||||||
struct WASMModuleInstance;
|
struct WASMModuleInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the unique main function from a WASM module instance
|
||||||
|
* and execute that function.
|
||||||
|
*
|
||||||
|
* @param module_inst the WASM module instance
|
||||||
|
* @param argc the number of arguments
|
||||||
|
* @param argv the arguments array
|
||||||
|
*
|
||||||
|
* @return true if the main function is called, false otherwise and exception will be thrown,
|
||||||
|
* the caller can call wasm_runtime_get_exception to get exception info.
|
||||||
|
*/
|
||||||
bool
|
bool
|
||||||
wasm_application_execute_main(struct WASMModuleInstance *module_inst,
|
wasm_application_execute_main(struct WASMModuleInstance *module_inst,
|
||||||
int argc, char *argv[]);
|
int argc, char *argv[]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the specified function in argv[0] from a WASM module instance
|
||||||
|
* and execute that function.
|
||||||
|
*
|
||||||
|
* @param module_inst the WASM module instance
|
||||||
|
* @param name the name of the function to execute
|
||||||
|
* @param argc the number of arguments
|
||||||
|
* @param argv the arguments array
|
||||||
|
*
|
||||||
|
* @return true if the specified function is called, false otherwise and exception will be thrown,
|
||||||
|
* the caller can call wasm_runtime_get_exception to get exception info.
|
||||||
|
*/
|
||||||
bool
|
bool
|
||||||
wasm_application_execute_func(struct WASMModuleInstance *module_inst,
|
wasm_application_execute_func(struct WASMModuleInstance *module_inst,
|
||||||
char *name, int argc, char *argv[]);
|
char *name, int argc, char *argv[]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user