mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-01 13:29:32 +00:00
Always end preprocessor expression processing at end of line.
In certain error cases, tokens from subsequent lines could get treated as part of a preprocessor expression, causing subsequent code to be essentially ignored and producing strange error messages. Here is an example (with an error) affected by this: #pragma optimize 0 0 int main(void) {}
This commit is contained in:
parent
bdf212ec6b
commit
946c6c1d55
@ -2342,7 +2342,7 @@ var
|
||||
begin {NumericDirective}
|
||||
doingPPExpression := true;
|
||||
NextToken; {skip the directive name}
|
||||
Expression(preprocessorExpression, []); {evaluate the expression}
|
||||
Expression(preprocessorExpression, [eolsy]); {evaluate the expression}
|
||||
doingPPExpression := false;
|
||||
end; {NumericDirective}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user