Fix preprocessor stringify of undefined macro.

This commit is contained in:
Wilson Snyder
2020-10-09 18:53:09 -04:00
parent 1ebf937a6c
commit 215d3614c0
9 changed files with 72 additions and 4 deletions
+4 -1
View File
@@ -1401,7 +1401,10 @@ int V3PreProcImp::getStateToken() {
if (m_off) {
goto next_tok;
} else {
return VP_TEXT;
// We want final text of `name, but that would cause
// recursion, so use a special character to get it through
unputDefrefString(string("`\032") + name);
goto next_tok;
}
} else {
string params = defParams(name);