File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ unsigned int *Script::bytecode() const
1717 return m_bytecode;
1818}
1919
20+ /* ! Returns the bytecode vector. */
21+ const std::vector<unsigned int > &Script::bytecodeVector () const
22+ {
23+ return m_bytecodeVector;
24+ }
25+
2026/* ! Sets the bytecode of the script. */
2127void Script::setBytecode (const std::vector<unsigned int > &code)
2228{
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ class LIBSCRATCHCPP_EXPORT Script
1515 Script (const Script &) = delete ;
1616
1717 unsigned int *bytecode () const ;
18+ const std::vector<unsigned int > &bytecodeVector () const ;
1819 void setBytecode (const std::vector<unsigned int > &code);
1920
2021 void setProcedures (const std::vector<unsigned int *> &procedures);
You can’t perform that action at this time.
0 commit comments