From 5240aa8379f435dfd6c4d1f373327461f27dadd0 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 12 Aug 2012 11:36:15 +0200 Subject: [PATCH] ast_istype should add the TYPE_ prefix --- ast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.2