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/else.c | |
| parent | 806824b23c28d2d81ffd588c555be82fa5a14004 (diff) | |
| download | nanowasm-ba623c7a3a5b450b9b492de50efceea93df96039.tar.gz | |
Add if and else operators
Diffstat (limited to 'src/op/else.c')
| -rw-r--r-- | src/op/else.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/op/else.c b/src/op/else.c new file mode 100644 index 0000000..2c1c6b1 --- /dev/null +++ b/src/op/else.c @@ -0,0 +1,18 @@ +/* + * nanowasm, a tiny WebAssembly/Wasm interpreter + * Copyright (C) 2023-2025 Xavier Del Campo Romero + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +#include <nanowasm/nw.h> +#include <nw/interp.h> +#include <nw/ops.h> +#include <nw/routines.h> + +void nwp_op_else(struct nw_interp *const i) +{ + nwp_break(i, 0); +} |
