mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix filename backslash escapes in C code (#5947).
This commit is contained in:
@@ -268,6 +268,8 @@ public:
|
||||
string asciiLineCol() const;
|
||||
int filenameno() const VL_MT_SAFE { return m_filenameno; }
|
||||
string filename() const VL_MT_SAFE { return singleton().numberToName(filenameno()); }
|
||||
// Filename with C string escapes
|
||||
string filenameEsc() const VL_MT_SAFE { return VString::quoteBackslash(filename()); }
|
||||
bool filenameIsGlobal() const VL_MT_SAFE {
|
||||
return (filename() == commandLineFilename() || filename() == builtInFilename());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user