From: Wolfgang (Blub) Bumiller Date: Sun, 12 Aug 2012 09:36:15 +0000 (+0200) Subject: ast_istype should add the TYPE_ prefix X-Git-Tag: 0.1-rc1~346^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5240aa8379f435dfd6c4d1f373327461f27dadd0;p=xonotic%2Fgmqcc.git ast_istype should add the TYPE_ prefix --- diff --git a/ast.h b/ast.h index 5a09b43..29f3061 100644 --- a/ast.h +++ b/ast.h @@ -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 */