Preprocessor: Allow '\' as a token, which gets actual use in #error, but should have no other use.
This is just for '\' that's not before a new line. Note the specification says it has no use other than as line continuation, but #error is a grey area. (There are no escape sequences.)
This commit is contained in:
parent
f330f08129
commit
aead93aafd
4 changed files with 24 additions and 4 deletions
|
|
@ -462,8 +462,8 @@ int TPpContext::eval(int token, int precedence, bool shortCircuit, int& res, boo
|
|||
token = scanToken(ppToken);
|
||||
}
|
||||
} else {
|
||||
int op;
|
||||
for (op = NUM_ELEMENTS(unop) - 1; op >= 0; op--) {
|
||||
int op = NUM_ELEMENTS(unop) - 1;
|
||||
for (; op >= 0; op--) {
|
||||
if (unop[op].token == token)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue