mirror of
https://github.com/ZDoom/acc.git
synced 2025-02-27 05:41:19 +00:00
Add support for unary +
- Other languages can do this, and carlcyber noticed ACC couldn't, so now it can.
This commit is contained in:
parent
f099d5e667
commit
c6bc836ecb
1 changed files with 5 additions and 0 deletions
5
parse.c
5
parse.c
|
@ -3410,6 +3410,11 @@ static void ExprLevX(int level)
|
||||||
unaryMinus = TRUE;
|
unaryMinus = TRUE;
|
||||||
TK_NextToken();
|
TK_NextToken();
|
||||||
}
|
}
|
||||||
|
if(tk_Token == TK_PLUS)
|
||||||
|
{
|
||||||
|
// Completely ignore unary plus
|
||||||
|
TK_NextToken();
|
||||||
|
}
|
||||||
if(ConstantExpression == YES)
|
if(ConstantExpression == YES)
|
||||||
{
|
{
|
||||||
ConstExprFactor();
|
ConstExprFactor();
|
||||||
|
|
Loading…
Reference in a new issue