mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Ignore preprocessor directives when parsing declarations
This commit is contained in:
parent
77d08980f6
commit
2e3740566b
1 changed files with 5 additions and 0 deletions
|
@ -2025,6 +2025,11 @@ recheck:
|
|||
pos++; // Ignore extraneous '}'
|
||||
[self skipSpaces];
|
||||
}
|
||||
else if (buffer[pos] == '#')
|
||||
{
|
||||
[self parsePreprocessor]; // Ignore preprocessor directive.
|
||||
DESTROY(comment);
|
||||
}
|
||||
else
|
||||
{
|
||||
[self log: @"Unexpected char (%c) in declaration", buffer[pos]];
|
||||
|
|
Loading…
Reference in a new issue