aboutsummaryrefslogtreecommitdiff
path: root/src/op/block.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/op/block.c')
-rw-r--r--src/op/block.c9
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);
}