mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
Do not expand to empty if the macro is not found.
This commit is contained in:
parent
74206bb9c0
commit
db74457777
1 changed files with 5 additions and 0 deletions
|
@ -221,6 +221,8 @@ public abstract class AbstractMakefile extends Parent implements IMakefile {
|
|||
result = expandString(result, recursive);
|
||||
}
|
||||
buffer.append(result);
|
||||
} else { // Do not expand
|
||||
buffer.append('$').append('(').append(name).append(')');
|
||||
}
|
||||
}
|
||||
macroName.setLength(0);
|
||||
|
@ -244,6 +246,9 @@ public abstract class AbstractMakefile extends Parent implements IMakefile {
|
|||
result = expandString(result, recursive);
|
||||
}
|
||||
buffer.append(result);
|
||||
} else {
|
||||
// nothing found
|
||||
buffer.append('$').append(c);
|
||||
}
|
||||
inMacro = false;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue