MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / execAfterEval

Method execAfterEval

src/script/engine.h:20–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 bool m_printLastResult = false;
19
20 void execAfterEval(bool success) {
21 for (auto& listener : m_afterEvalListeners) {
22 listener(success);
23 }
24 m_afterEvalListeners.clear();
25 for (auto it = m_ObjToScriptObj.begin(); it != m_ObjToScriptObj.end();) {
26 auto& entry = it->second;
27 if (!entry->held && entry->script->disposable()) {
28 it = m_ObjToScriptObj.erase(it);
29 } else {
30 ++it;
31 }
32 }
33 for (auto it = m_scriptObjects.begin(); it != m_scriptObjects.end();) {
34 auto& entry = *it;
35 if (!entry->held && entry->script->disposable()) {
36 it = m_scriptObjects.erase(it);
37 } else {
38 ++it;
39 }
40 }
41 }
42
43 public:
44

Callers

nothing calls this directly

Calls 4

clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
disposableMethod · 0.45

Tested by

no test coverage detected