Skip to content

Commit 3e7dc45

Browse files
wthollidayclaude
andcommitted
Expose StackVM globals for Rust embedders
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 97090f6 commit 3e7dc45

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/stack_vm.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ impl StackVM {
4242
}
4343
}
4444

45+
pub fn globals(&self) -> &[u8] {
46+
&self.globals
47+
}
48+
49+
pub fn globals_mut(&mut self) -> &mut Vec<u8> {
50+
&mut self.globals
51+
}
52+
4553
#[inline(always)]
4654
fn push(&mut self, val: u64) {
4755
self.operand_stack.push(val);

0 commit comments

Comments
 (0)