MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / operator()

Method operator()

src/SourceCompile/Compiler.cpp:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 5

pythonListenerMethod · 0.80
getCommandLineParserMethod · 0.45
setPythonInterpMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected