diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-10 23:47:10 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-10 23:47:10 +0100 |
| commit | ba623c7a3a5b450b9b492de50efceea93df96039 (patch) | |
| tree | 92b0d70db2fb304bac604338215401e25e8c4aac /include | |
| parent | 806824b23c28d2d81ffd588c555be82fa5a14004 (diff) | |
| download | nanowasm-ba623c7a3a5b450b9b492de50efceea93df96039.tar.gz | |
Add if and else operators
Diffstat (limited to 'include')
| -rw-r--r-- | include/nanowasm/private.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/nanowasm/private.h b/include/nanowasm/private.h index 018164e..bd42f1e 100644 --- a/include/nanowasm/private.h +++ b/include/nanowasm/private.h @@ -232,7 +232,7 @@ union nw_i_sm struct nw_i_sm_sb { - void (*next)(struct nw_interp *); + enum nw_state (*next)(struct nw_interp *); struct nw_sm_leb128 leb128; struct nw_sm_io io; } start_block; @@ -283,6 +283,15 @@ union nw_i_sm } value; } store; + struct nw_i_sm_if + { + nw_varint7 sig; + struct nw_i_sm_sb sb; + struct nw_sm_leb128 leb128; + struct nw_sm_io io; + long condition; + } sm_if; + struct nw_i_sm_br { nw_varuint32 relative_depth; |
