Fix `define argument mis-replacing system task of same name, bug191.

This commit is contained in:
Wilson Snyder
2009-11-23 14:26:04 -05:00
parent 2f2f367c0b
commit af5aa38bc3
4 changed files with 16 additions and 1 deletions
+1
View File
@@ -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;