mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-04 11:15:39 +00:00
Deprecate '*' for comments
This commit is contained in:
1 parent
d6cd5823e3
commit
a034ce0478
1 file changed
+1
@@ -342,6 +342,7 @@ YY_BUFFER_STATE yy_create_buffer(FILE *f)
|
||||
*mem++ = ' ';
|
||||
/* Comments that start with * at the start of a line */
|
||||
} else if ((mem[0] == '\n') && (mem[1] == '*')) {
|
||||
warning(WARNING_OBSOLETE, "'*' is deprecated for comments, please use ';' instead");
|
||||
mem++;
|
||||
while (!((*mem == '\n') || (*mem == '\0')))
|
||||
*mem++ = ' ';
|
||||
|
||||
Reference in new issue
Block a user