ast_istype should add the TYPE_ prefix

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-12 11:36:15 +02:00
parent b968927074
commit 5240aa8379

2
ast.h
View file

@ -63,7 +63,7 @@ enum {
TYPE_ast_member
};
#define ast_istype(x, t) ( ((ast_node_common*)x)->nodetype == (t) )
#define ast_istype(x, t) ( ((ast_node_common*)x)->nodetype == (TYPE_##t) )
/* Node interface with common components
*/