mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 15:17:36 +00:00
Commenary
This commit is contained in:
parent
89c8449ec0
commit
48d3ce46d8
@ -561,7 +561,7 @@ string V3PreProcImp::defineSubst(V3DefineRef* refp) {
|
||||
bool quote = false;
|
||||
bool haveDefault = false;
|
||||
// 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();
|
||||
if (*cp == '(') cp++;
|
||||
for (; *cp; cp++) {
|
||||
@ -1265,7 +1265,7 @@ int V3PreProcImp::getStateToken() {
|
||||
error("Recursive `define substitution: `"+name);
|
||||
goto next_tok;
|
||||
}
|
||||
// substitute
|
||||
// Substitute
|
||||
if (!defExists(name)) { // Not found, return original string as-is
|
||||
m_defDepth = 0;
|
||||
UINFO(4,"Defref `"<<name<<" => not_defined"<<endl);
|
||||
|
Loading…
Reference in New Issue
Block a user