mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 12:00:38 +00:00
Making the = in front of function bodies optional
This commit is contained in:
parent
b17fe4db0b
commit
016257c44e
1 changed files with 9 additions and 7 deletions
16
parser.c
16
parser.c
|
@ -2759,14 +2759,16 @@ skipvar:
|
|||
}
|
||||
}
|
||||
|
||||
if (parser->tok != '=') {
|
||||
parseerror(parser, "missing semicolon or initializer");
|
||||
break;
|
||||
}
|
||||
if (parser->tok != '{') {
|
||||
if (parser->tok != '=') {
|
||||
parseerror(parser, "missing semicolon or initializer");
|
||||
break;
|
||||
}
|
||||
|
||||
if (!parser_next(parser)) {
|
||||
parseerror(parser, "error parsing initializer");
|
||||
break;
|
||||
if (!parser_next(parser)) {
|
||||
parseerror(parser, "error parsing initializer");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (parser->tok == '#') {
|
||||
|
|
Loading…
Reference in a new issue