mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Merge branch 'master' of github.com:graphitemaster/gmqcc
This commit is contained in:
commit
7d14fdf530
1 changed files with 10 additions and 0 deletions
10
parser.c
10
parser.c
|
@ -549,6 +549,16 @@ static bool parser_sy_apply_operator(parser_t *parser, shunt *sy)
|
|||
exprs[i] = sy->out[vec_size(sy->out)+i].out;
|
||||
blocks[i] = sy->out[vec_size(sy->out)+i].block;
|
||||
asvalue[i] = (ast_value*)exprs[i];
|
||||
|
||||
if (exprs[i]->expression.vtype == TYPE_NOEXPR &&
|
||||
!(i != 0 && op->id == opid2('?',':')))
|
||||
{
|
||||
if (ast_istype(exprs[i], ast_label))
|
||||
compile_error(ast_ctx(exprs[i]), "expected expression, got an unknown identifier");
|
||||
else
|
||||
compile_error(ast_ctx(exprs[i]), "not an expression");
|
||||
(void)!compile_warning(ast_ctx(exprs[i]), WARN_DEBUG, "expression %u\n", (unsigned int)i);
|
||||
}
|
||||
}
|
||||
|
||||
if (blocks[0] && !vec_size(blocks[0]->exprs) && op->id != opid1(',')) {
|
||||
|
|
Loading…
Reference in a new issue