Function wasmedge_sys::ffi::WasmEdge_StatisticsSetCostLimit
source · pub unsafe extern "C" fn WasmEdge_StatisticsSetCostLimit(
Cxt: *mut WasmEdge_StatisticsContext,
Limit: u64
)
Expand description
Set the cost limit in execution.
The WASM execution will be aborted if the instruction costs exceeded the limit and the ErrCode::Value::CostLimitExceeded will be returned.
\param Cxt the WasmEdge_StatisticsContext to set the cost table. \param Limit the cost limit.