Add the isFinalDefine boolean to 1 in Parser.hpp

This commit is contained in:
Username404 2021-09-15 20:05:23 +02:00
parent 08a038cf82
commit 500662f5c5
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ namespace Parser {
bool isFinalDefine = nextAre(2, TAG, DEFINE);
if (isFinalDefine || next.toktype == DEFINE) {
parseTree << Define(isFinalDefine, current.toktext);
i += isFinalDefine ? 2 : 1;
i += 1 + isFinalDefine;
} else {
parseTree << Reference(current.toktext);
}