aboutsummaryrefslogtreecommitdiff
path: root/src/interp
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-10 23:47:10 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-10 23:47:10 +0100
commitba623c7a3a5b450b9b492de50efceea93df96039 (patch)
tree92b0d70db2fb304bac604338215401e25e8c4aac /src/interp
parent806824b23c28d2d81ffd588c555be82fa5a14004 (diff)
Add if and else operators
Diffstat (limited to 'src/interp')
-rw-r--r--src/interp/ops.c4
1 files changed, 2 insertions, 2 deletions
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,