| 214 | } |
| 215 | |
| 216 | std::string SLgetFile(SV3_1aPythonListener* prog, |
| 217 | antlr4::ParserRuleContext* context) { |
| 218 | #ifdef SURELOG_WITH_PYTHON |
| 219 | FileSystem* const fileSystem = FileSystem::getInstance(); |
| 220 | SV3_1aPythonListener* listener = prog; |
| 221 | ParseFile* parseFile = listener->getPythonListen()->getParseFile(); |
| 222 | return std::string(fileSystem->toPath(parseFile->getFileId(0))); |
| 223 | #else |
| 224 | std::cerr << "SLgetFile(): Python support not compiled in\n"; |
| 225 | return ""; |
| 226 | #endif |
| 227 | } |
| 228 | |
| 229 | int32_t SLgetLine(SV3_1aPythonListener* prog, |
| 230 | antlr4::ParserRuleContext* context) { |
no test coverage detected