We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02cd2e7 commit c849bf2Copy full SHA for c849bf2
include/scratchcpp/virtualmachine.h
@@ -109,6 +109,8 @@ class LIBSCRATCHCPP_EXPORT VirtualMachine
109
110
unsigned int *bytecode() const;
111
112
+ size_t registerCount() const;
113
+
114
Target *target() const;
115
IEngine *engine() const;
116
Script *script() const;
src/engine/virtualmachine.cpp
@@ -69,6 +69,12 @@ unsigned int *VirtualMachine::bytecode() const
69
return impl->bytecode;
70
}
71
72
+/*! Returns number of currently used registers. */
73
+size_t VirtualMachine::registerCount() const
74
+{
75
+ return impl->regCount;
76
+}
77
78
/*! Returns the Target the VM belongs to. */
79
Target *VirtualMachine::target() const
80
{
0 commit comments