mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix `define argument mis-replacing system task of same name, bug191.
This commit is contained in:
@@ -462,6 +462,7 @@ string V3PreProcImp::defineSubst(V3DefineRef* refp) {
|
||||
//cout << "CH "<<*cp<<" an "<<argName<<"\n";
|
||||
if (!quote) {
|
||||
if ( isalpha(*cp) || *cp=='_'
|
||||
|| *cp=='$' // Won't replace system functions, since no $ in argValueByName
|
||||
|| (argName!="" && (isdigit(*cp) || *cp=='$'))) {
|
||||
argName += *cp;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user