projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89d8642
)
add an asterror message for ast_entfield_new with a wrong type
author
Wolfgang (Blub) Bumiller <blub@speed.at>
Mon, 12 Nov 2012 21:33:34 +0000
(22:33 +0100)
committer
Wolfgang (Blub) Bumiller <blub@speed.at>
Mon, 12 Nov 2012 21:33:34 +0000
(22:33 +0100)
ast.c
patch
|
blob
|
history
diff --git
a/ast.c
b/ast.c
index 3575437955e8347ed7607b9846fe985685f1a0f2..da51a46a8d74ac28d5ce51f87942963cf26ea8d7 100644
(file)
--- a/
ast.c
+++ b/
ast.c
@@
-488,6
+488,7
@@
ast_entfield* ast_entfield_new(lex_ctx ctx, ast_expression *entity, ast_expressi
ast_instantiate(ast_entfield, ctx, ast_entfield_delete);
if (field->expression.vtype != TYPE_FIELD) {
+ asterror(ctx, "ast_entfield_new with expression not of type field");
mem_d(self);
return NULL;
}