diff --git a/core/iwasm/common/wasm_runtime_common.c b/core/iwasm/common/wasm_runtime_common.c index 2f58d82ef..beb8c72b7 100644 --- a/core/iwasm/common/wasm_runtime_common.c +++ b/core/iwasm/common/wasm_runtime_common.c @@ -2287,7 +2287,7 @@ wasm_runtime_access_exce_check_guard_page() #ifdef WASM_INSTRUCTION_METERING void -wasm_runtime_set_instructions_to_execute(WASMExecEnv *exec_env, +wasm_runtime_set_instruction_count_limit(WASMExecEnv *exec_env, int instructions_to_execute) { exec_env->instructions_to_execute = instructions_to_execute; diff --git a/core/iwasm/common/wasm_runtime_common.h b/core/iwasm/common/wasm_runtime_common.h index a9b2903c6..60688fb52 100644 --- a/core/iwasm/common/wasm_runtime_common.h +++ b/core/iwasm/common/wasm_runtime_common.h @@ -675,15 +675,15 @@ wasm_runtime_set_native_stack_boundary(WASMExecEnv *exec_env, #if WASM_INSTRUCTION_METERING != 0 /* See wasm_export.h for description */ WASM_RUNTIME_API_EXTERN void -wasm_runtime_set_exception_with_id(WASMModuleInstanceCommon *module, - uint32 exception_id); +wasm_runtime_set_instruction_count_limit(WASMExecEnv *exec_env, + int instructions_to_execute) #endif #if WASM_CONFIGURABLE_BOUNDS_CHECKS != 0 -/* See wasm_export.h for description */ -WASM_RUNTIME_API_EXTERN void -wasm_runtime_set_bounds_checks(WASMModuleInstanceCommon *module_inst, - bool enable); + /* See wasm_export.h for description */ + WASM_RUNTIME_API_EXTERN + void wasm_runtime_set_bounds_checks(WASMModuleInstanceCommon *module_inst, + bool enable); /* See wasm_export.h for description */ WASM_RUNTIME_API_EXTERN bool