From: Wolfgang (Blub) Bumiller Date: Fri, 23 Nov 2012 21:15:17 +0000 (+0100) Subject: A nice internal error X-Git-Tag: 0.1.9~296 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5897f0439ccd7ce633aa814072b194f74c8ad62a;p=xonotic%2Fgmqcc.git A nice internal error --- diff --git a/ast.c b/ast.c index 7061f1e..d6f231c 100644 --- a/ast.c +++ b/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; }