Accept expressions for the slotIndex in the slot logic syscalls

This commit is contained in:
2025-12-21 15:59:40 -07:00
parent 15752fde3d
commit 93873dfa93
3 changed files with 13 additions and 41 deletions

View File

@@ -223,7 +223,7 @@ documented! {
/// `let isOccupied = ls(deviceHash, 2, "Occupied");`
LoadSlot(
Spanned<LiteralOrVariable<'a>>,
Spanned<Literal<'a>>,
Box<Spanned<Expression<'a>>>,
Spanned<Literal<'a>>
),
/// Stores a value of LogicType on a device by the index value
@@ -234,7 +234,7 @@ documented! {
/// `ss(deviceHash, 0, "Open", true);`
SetSlot(
Spanned<LiteralOrVariable<'a>>,
Spanned<Literal<'a>>,
Box<Spanned<Expression<'a>>>,
Spanned<Literal<'a>>,
Box<Spanned<Expression<'a>>>
),