mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-31 15:01:01 +00:00
Allow 'var' in functions... even there initialized locals seem to be constant by default... laaaaaaaame
This commit is contained in:
parent
967254f7f2
commit
c62e0a93eb
1 changed files with 2 additions and 1 deletions
3
parser.c
3
parser.c
|
@ -2294,7 +2294,8 @@ static bool parse_statement(parser_t *parser, ast_block *block, ast_expression *
|
|||
else if (parser->tok == TOKEN_KEYWORD)
|
||||
{
|
||||
if (!strcmp(parser_tokval(parser), "local") ||
|
||||
!strcmp(parser_tokval(parser), "const"))
|
||||
!strcmp(parser_tokval(parser), "const") ||
|
||||
!strcmp(parser_tokval(parser), "var"))
|
||||
{
|
||||
int cvq = parser_tokval(parser)[0] == 'c' ? CV_CONST : CV_VAR;
|
||||
|
||||
|
|
Loading…
Reference in a new issue