mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Deprecate '*' for comments
This commit is contained in:
@@ -342,6 +342,7 @@ YY_BUFFER_STATE yy_create_buffer(FILE *f)
|
|||||||
*mem++ = ' ';
|
*mem++ = ' ';
|
||||||
/* Comments that start with * at the start of a line */
|
/* Comments that start with * at the start of a line */
|
||||||
} else if ((mem[0] == '\n') && (mem[1] == '*')) {
|
} else if ((mem[0] == '\n') && (mem[1] == '*')) {
|
||||||
|
warning(WARNING_OBSOLETE, "'*' is deprecated for comments, please use ';' instead");
|
||||||
mem++;
|
mem++;
|
||||||
while (!((*mem == '\n') || (*mem == '\0')))
|
while (!((*mem == '\n') || (*mem == '\0')))
|
||||||
*mem++ = ' ';
|
*mem++ = ' ';
|
||||||
|
|||||||
Reference in New Issue
Block a user