mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 02:10:53 +00:00
allow a semicolon after function bodies - make it mandatory with -std=qcc
This commit is contained in:
parent
51719db2cf
commit
c2364567de
1 changed files with 5 additions and 0 deletions
5
parser.c
5
parser.c
|
@ -1622,6 +1622,11 @@ static bool parser_variable(parser_t *parser, ast_block *localblock)
|
|||
ast_block_delete(block);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (parser->tok == ';')
|
||||
return parser_next(parser);
|
||||
else if (opts_standard == COMPILER_QCC)
|
||||
parseerror(parser, "missing semicolon after function body (mandatory with -std=qcc)");
|
||||
return true;
|
||||
} else {
|
||||
parseerror(parser, "TODO, const assignment");
|
||||
|
|
Loading…
Reference in a new issue