mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +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;
|
||||
}
|
||||
|
||||
if (parser->tok == ')')
|
||||
break;
|
||||
|
||||
param = parser_parse_type(parser, &dummy);
|
||||
(void)dummy;
|
||||
|
||||
|
|
Loading…
Reference in a new issue