forked from github/verilator
Commenary
This commit is contained in:
parent
89c8449ec0
commit
48d3ce46d8
@ -561,7 +561,7 @@ string V3PreProcImp::defineSubst(V3DefineRef* refp) {
|
|||||||
bool quote = false;
|
bool quote = false;
|
||||||
bool haveDefault = false;
|
bool haveDefault = false;
|
||||||
// Note there's a leading ( and trailing ), so parens==1 is the base parsing level
|
// Note there's a leading ( and trailing ), so parens==1 is the base parsing level
|
||||||
string params = refp->params(); // Must keep in scope
|
string params = refp->params(); // Must keep str in scope to get pointer
|
||||||
const char* cp=params.c_str();
|
const char* cp=params.c_str();
|
||||||
if (*cp == '(') cp++;
|
if (*cp == '(') cp++;
|
||||||
for (; *cp; cp++) {
|
for (; *cp; cp++) {
|
||||||
@ -1265,7 +1265,7 @@ int V3PreProcImp::getStateToken() {
|
|||||||
error("Recursive `define substitution: `"+name);
|
error("Recursive `define substitution: `"+name);
|
||||||
goto next_tok;
|
goto next_tok;
|
||||||
}
|
}
|
||||||
// substitute
|
// Substitute
|
||||||
if (!defExists(name)) { // Not found, return original string as-is
|
if (!defExists(name)) { // Not found, return original string as-is
|
||||||
m_defDepth = 0;
|
m_defDepth = 0;
|
||||||
UINFO(4,"Defref `"<<name<<" => not_defined"<<endl);
|
UINFO(4,"Defref `"<<name<<" => not_defined"<<endl);
|
||||||
|
Loading…
Reference in New Issue
Block a user