Ignore preprocessor directives when parsing declarations

This commit is contained in:
rfm 2023-10-23 16:37:04 +01:00
parent 77d08980f6
commit 2e3740566b

View file

@ -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]];