Skip to content

Commit 2481e94

Browse files
committed
Compiler: Add getter for engine
1 parent c435555 commit 2481e94

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/engine/compiler.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ const std::vector<unsigned int> &Compiler::bytecode() const
5353
return m_bytecode;
5454
}
5555

56+
/*! Returns the Engine. */
57+
Engine *Compiler::engine() const
58+
{
59+
return m_engine;
60+
}
61+
5662
/*! Returns the list of constant input values. */
5763
const std::vector<InputValue *> &Compiler::constInputValues() const
5864
{

src/engine/compiler.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class LIBSCRATCHCPP_EXPORT Compiler
2525

2626
const std::vector<unsigned int> &bytecode() const;
2727

28+
Engine *engine() const;
29+
2830
const std::vector<InputValue *> &constInputValues() const;
2931
std::vector<Value> constValues() const;
3032

0 commit comments

Comments
 (0)