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 /src/op/block.c | |
| parent | 806824b23c28d2d81ffd588c555be82fa5a14004 (diff) | |
| download | nanowasm-ba623c7a3a5b450b9b492de50efceea93df96039.tar.gz | |
Add if and else operators
Diffstat (limited to 'src/op/block.c')
| -rw-r--r-- | src/op/block.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/op/block.c b/src/op/block.c index e35a722..78651da 100644 --- a/src/op/block.c +++ b/src/op/block.c @@ -8,10 +8,17 @@ */ #include <nanowasm/nw.h> +#include <nw/interp.h> #include <nw/ops.h> #include <nw/routines.h> +static enum nw_state resume(struct nw_interp *const i) +{ + nwp_interp_resume(i); + return NW_AGAIN; +} + void nwp_op_block(struct nw_interp *const i) { - nwp_start_block(i); + nwp_start_block(i, &i->sm.start_block, resume); } |
