We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bcfcda commit 3b11dccCopy full SHA for 3b11dcc
src/engine/engine.cpp
@@ -286,6 +286,12 @@ void Engine::breakFrame()
286
m_breakFrame = true;
287
}
288
289
+/*! Returns true if breakFrame() was called. */
290
+bool libscratchcpp::Engine::breakingCurrentFrame()
291
+{
292
+ return m_breakFrame;
293
+}
294
+
295
/*! Registers the given block section. */
296
void Engine::registerSection(std::shared_ptr<IBlockSection> section)
297
{
src/engine/engine.h
@@ -45,6 +45,7 @@ class LIBSCRATCHCPP_EXPORT Engine
45
bool broadcastRunning(unsigned int index);
46
47
void breakFrame();
48
+ bool breakingCurrentFrame();
49
50
void registerSection(std::shared_ptr<IBlockSection> section);
51
unsigned int functionIndex(BlockFunc f);
0 commit comments