From 5897f0439ccd7ce633aa814072b194f74c8ad62a Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 23 Nov 2012 22:15:17 +0100 Subject: [PATCH] A nice internal error --- ast.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.2