mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
Properly parse functions without parameters
This commit is contained in:
parent
532aaba87d
commit
03baa85c43
1 changed files with 3 additions and 0 deletions
3
parser.c
3
parser.c
|
@ -92,6 +92,9 @@ ast_value *parser_parse_type(parser_t *parser, bool *isfunc)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (parser->tok == ')')
|
||||||
|
break;
|
||||||
|
|
||||||
param = parser_parse_type(parser, &dummy);
|
param = parser_parse_type(parser, &dummy);
|
||||||
(void)dummy;
|
(void)dummy;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue