From 0b2a1fd9439d5ab1cdc076d7b9f1e763c4900b74 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 15 Nov 2025 18:48:16 +0100 Subject: Add br_table br_table is in fact a generalization of other branch types like br or br_if, since br_table contains several branches for the same pc inside the nw_lo section. Therefore, this kind of branch forced some changes to nwp_break and those relying on it. --- private_include/nw/routines.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'private_include') diff --git a/private_include/nw/routines.h b/private_include/nw/routines.h index 6938fc4..0baee65 100644 --- a/private_include/nw/routines.h +++ b/private_include/nw/routines.h @@ -55,7 +55,8 @@ void nwp_get_import_type(struct nw_interp *i, struct nw_get_import_type *t, nw_varuint32 index, enum nw_state (*next)(struct nw_interp *)); void nwp_mem_imm(struct nw_interp *i, void (*next)(struct nw_interp *)); void nwp_unwind(struct nw_interp *i); -void nwp_break(struct nw_interp *i, nw_varuint32 relative_depth); +void nwp_break(struct nw_interp *i, nw_varuint32 relative_depth, + nw_varuint32 table_offset); void nwp_find_param(struct nw_interp *i, struct nw_find_param *f, nw_varuint32 index, enum nw_state (*next)(struct nw_interp *), void *args); void nwp_find_local(struct nw_interp *i, struct nw_find_local *f, -- cgit v1.2.3