mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
A nice internal error
This commit is contained in:
parent
2bc99076cf
commit
5897f0439c
1 changed files with 4 additions and 0 deletions
4
ast.c
4
ast.c
|
@ -892,6 +892,10 @@ ast_function* ast_function_new(lex_ctx ctx, const char *name, ast_value *vtype)
|
|||
vtype->isconst ||
|
||||
vtype->expression.vtype != TYPE_FUNCTION)
|
||||
{
|
||||
asterror(ast_ctx(self), "internal error: ast_function_new condition %i %i type=%i",
|
||||
(int)!vtype,
|
||||
(int)vtype->isconst,
|
||||
vtype->expression.vtype);
|
||||
mem_d(self);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue