Skip to content

Commit 2bcfcda

Browse files
committed
VirtualMachine: Add getter for const values
1 parent 9f3703d commit 2bcfcda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/engine/virtualmachine.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ class LIBSCRATCHCPP_EXPORT VirtualMachine
102102

103103
void setBytecode(unsigned int *code);
104104

105+
/*! Returns the array of constant values. */
106+
const Value *constValues() const { return m_constValues; };
107+
105108
/*! Returns the bytecode array. */
106109
unsigned int *bytecode() const { return m_bytecode; };
107110

0 commit comments

Comments
 (0)