aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-15 18:53:12 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-15 18:53:12 +0100
commit6c2108e6bd19ffa47b33f61501f25db47ddb4cfb (patch)
treecb28509831024fa44f564bfb4cfd2dafeef97e73 /include
parentb1034b86023672e6750da49b01a7d429cd8339d0 (diff)
downloadnanowasm-6c2108e6bd19ffa47b33f61501f25db47ddb4cfb.tar.gz
Add select operator
Diffstat (limited to 'include')
-rw-r--r--include/nanowasm/private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/nanowasm/private.h b/include/nanowasm/private.h
index 4a378d3..e396a6b 100644
--- a/include/nanowasm/private.h
+++ b/include/nanowasm/private.h
@@ -439,6 +439,16 @@ union nw_i_sm
union nw_value value;
} drop;
+ struct nw_i_sm_select
+ {
+ long condition;
+ size_t sz;
+ enum nw_type type;
+ union nw_value left, right;
+ struct nw_sm_io io;
+ union nw_value value;
+ } select;
+
struct nw_i_sm_cm
{
struct nw_sm_leb128 leb128;