From ba623c7a3a5b450b9b492de50efceea93df96039 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 10 Nov 2025 23:47:10 +0100 Subject: Add if and else operators --- src/interp/ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/interp') diff --git a/src/interp/ops.c b/src/interp/ops.c index de69126..2bfdff0 100644 --- a/src/interp/ops.c +++ b/src/interp/ops.c @@ -18,8 +18,8 @@ static void (*const ops[])(struct nw_interp *) = nwp_op_nop, /* OP_NOP */ nwp_op_block, /* OP_BLOCK */ nwp_op_loop, /* OP_LOOP */ - NULL, /* OP_IF */ - NULL, /* OP_ELSE */ + nwp_op_if, /* OP_IF */ + nwp_op_else, /* OP_ELSE */ NULL, NULL, NULL, -- cgit v1.2.3