MCPcopy Create free account
hub / github.com/commontk/CTK / foreach

Function foreach

Applications/ctkSimplePythonShell/ctkSimplePythonShellMain.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 ctkSimplePythonManager * pythonManager = reinterpret_cast<ctkSimplePythonManager*>(data);
54 QStringList scripts = pythonManager->property("scripts").toStringList();
55 foreach(const QString& script, scripts)
56 {
57 pythonManager->executeFile(script);
58 if (pythonManager->pythonErrorOccured())
59 {
60 QApplication::exit(EXIT_FAILURE);
61 }
62 }
63}
64
65//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

exitFunction · 0.85
executeFileMethod · 0.80
pythonErrorOccuredMethod · 0.80

Tested by

no test coverage detected