mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use common function to discard comments in macro args
This commit is contained in:
@@ -1667,10 +1667,8 @@ static int yylex_RAW(void)
|
|||||||
case ';': /* Comments inside macro args */
|
case ';': /* Comments inside macro args */
|
||||||
if (insideString)
|
if (insideString)
|
||||||
break;
|
break;
|
||||||
do {
|
discardComment();
|
||||||
shiftChars(1);
|
c = peek(0);
|
||||||
c = peek(0);
|
|
||||||
} while (c != EOF && c != '\r' && c != '\n');
|
|
||||||
/* fallthrough */
|
/* fallthrough */
|
||||||
case ',':
|
case ',':
|
||||||
case '\r':
|
case '\r':
|
||||||
|
|||||||
Reference in New Issue
Block a user