1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixed broken tests.

This commit is contained in:
Sergey Prigogin 2011-10-14 19:44:36 -07:00
parent ca69e0b6e9
commit 72db9fbe93

View file

@ -1822,7 +1822,7 @@ public class CPreprocessor implements ILexerLog, IScanner, IAdaptable {
}
PreprocessorMacro macro= fMacroDictionary.get(name);
if (macro == null) {
if ((options & IGNORE_UNDEFINED_SIGNIFICANT_MACROS) == 0)
if (reportSignificant && (options & IGNORE_UNDEFINED_SIGNIFICANT_MACROS) == 0)
fCurrentContext.significantMacroUndefined(name);
return false;
}