Fix handling input file path separator (#4515) (#4516)

This commit is contained in:
Anthony Donlon
2023-09-26 15:42:15 -04:00
committed by GitHub
parent be45a9b7d5
commit 229ce1aecf
22 changed files with 335 additions and 206 deletions
+1 -1
View File
@@ -358,7 +358,7 @@ string V3PreProcImp::removeDefines(const string& text) {
string rtnsym = text;
for (int loopprevent = 0; loopprevent < 100; loopprevent++) {
string xsym = rtnsym;
if (xsym.substr(0, 1) == "`") xsym.replace(0, 1, "");
if (xsym[0] == '`') xsym.erase(0, 1);
if (defExists(xsym)) {
val = defValue(xsym);
if (val != rtnsym) {