From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 14:18:51 +0000 (+0200) Subject: ast_usecount macro for convenience X-Git-Tag: 0.1-rc1~214 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e86c8ff0eb55b40c5a30accd5915be3a9b08e784;p=xonotic%2Fgmqcc.git ast_usecount macro for convenience --- diff --git a/ast.h b/ast.h index 4f26742..7f2f726 100644 --- a/ast.h +++ b/ast.h @@ -87,6 +87,7 @@ typedef struct #define ast_use(n) ((ast_node*)(n))->node.uses++ #define ast_unuse(n) ((ast_node*)(n))->node.uses-- +#define ast_usecount(n) (((ast_node*)(n))->node.uses) #define ast_delete(x) ( ( (ast_node*)(x) ) -> node.destroy )((ast_node*)(x)) #define ast_unref(x) do \