From: Wolfgang Bumiller Date: Fri, 28 Dec 2012 10:50:03 +0000 (+0100) Subject: So why doesn't any popular compiler complain about this X-Git-Tag: before-library~458 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=f1fa8f6055953368006a0877d2938f5f2693c012 So why doesn't any popular compiler complain about this --- diff --git a/ast.h b/ast.h index 93c105f..5dee444 100644 --- a/ast.h +++ b/ast.h @@ -95,7 +95,7 @@ typedef struct bool side_effects; } ast_node_common; -#define ast_delete(x) ( ( (ast_node*)(x) ) -> node.destroy )((ast_node*)(x)) +#define ast_delete(x) (*( ((ast_node*)(x))->node.destroy ))((ast_node*)(x)) #define ast_unref(x) do \ { \ if (! (((ast_node*)(x))->node.keep) ) { \