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/interp | |
| parent | 806824b23c28d2d81ffd588c555be82fa5a14004 (diff) | |
Add if and else operators
Diffstat (limited to 'src/interp')
| -rw-r--r-- | src/interp/ops.c | 4 |
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, |
