mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-25 21:31:31 +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;
|
||||
TK_NextToken();
|
||||
}
|
||||
if(tk_Token == TK_PLUS)
|
||||
{
|
||||
// Completely ignore unary plus
|
||||
TK_NextToken();
|
||||
}
|
||||
if(ConstantExpression == YES)
|
||||
{
|
||||
ConstExprFactor();
|
||||
|
|
Loading…
Reference in a new issue