Skip to content

Commit

Permalink
Allow defines for #embed arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
drmortalwombat committed Jul 21, 2024
1 parent 3dd23ec commit 4680ee3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oscar64/Scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,16 +897,16 @@ void Scanner::NextPreToken(void)
uint64 op = mCompilerOptions;
mCompilerOptions &= ~COPT_PETSCII;

NextRawToken();
NextPreToken();
if (IsIntegerToken())
{
limit = int(mTokenInteger);
NextRawToken();
NextPreToken();

if (IsIntegerToken())
{
skip = int(mTokenInteger);
NextRawToken();
NextPreToken();
}
}

Expand Down Expand Up @@ -939,7 +939,7 @@ void Scanner::NextPreToken(void)
else
mErrors->Error(mLocation, EERR_FILE_NOT_FOUND, "Invalid embed compression mode", mTokenIdent);

NextRawToken();
NextPreToken();
}

if (mToken == TK_STRING)
Expand Down

0 comments on commit 4680ee3

Please sign in to comment.