| 137 | : m_compileSourceFile(compileSource), m_action(action) {} |
| 138 | |
| 139 | int32_t operator()() const { |
| 140 | #ifdef SURELOG_WITH_PYTHON |
| 141 | if (m_compileSourceFile->getCommandLineParser()->pythonListener() || |
| 142 | m_compileSourceFile->getCommandLineParser() |
| 143 | ->pythonEvalScriptPerFile()) { |
| 144 | PyThreadState* interpState = PythonAPI::initNewInterp(); |
| 145 | m_compileSourceFile->setPythonInterp(interpState); |
| 146 | } |
| 147 | #endif |
| 148 | return m_compileSourceFile->compile(m_action); |
| 149 | } |
| 150 | |
| 151 | private: |
| 152 | CompileSourceFile* m_compileSourceFile; |
nothing calls this directly
no test coverage detected