Skip to content

Commit 3b11dcc

Browse files
committed
Engine: Add getter for breakFrame
1 parent 2bcfcda commit 3b11dcc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/engine/engine.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ void Engine::breakFrame()
286286
m_breakFrame = true;
287287
}
288288

289+
/*! Returns true if breakFrame() was called. */
290+
bool libscratchcpp::Engine::breakingCurrentFrame()
291+
{
292+
return m_breakFrame;
293+
}
294+
289295
/*! Registers the given block section. */
290296
void Engine::registerSection(std::shared_ptr<IBlockSection> section)
291297
{

src/engine/engine.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class LIBSCRATCHCPP_EXPORT Engine
4545
bool broadcastRunning(unsigned int index);
4646

4747
void breakFrame();
48+
bool breakingCurrentFrame();
4849

4950
void registerSection(std::shared_ptr<IBlockSection> section);
5051
unsigned int functionIndex(BlockFunc f);

0 commit comments

Comments
 (0)