From: Dale Weiler Date: Fri, 18 Oct 2013 00:34:16 +0000 (-0400) Subject: Undo fix and actually use a macro in the accumulation test .. just incase. X-Git-Tag: 0.3.5~4 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=c210340081569b05999034e5b22e954965983e64;ds=sidebyside Undo fix and actually use a macro in the accumulation test .. just incase. --- diff --git a/ftepp.c b/ftepp.c index 36299b3..fe63fbf 100644 --- a/ftepp.c +++ b/ftepp.c @@ -1513,8 +1513,6 @@ static bool ftepp_hash(ftepp_t *ftepp) case TOKEN_KEYWORD: case TOKEN_IDENT: case TOKEN_TYPENAME: - case TOKEN_ATTRIBUTE_CLOSE: - case TOKEN_ATTRIBUTE_OPEN: if (!strcmp(ftepp_tokval(ftepp), "define")) { ftepp_inmacro(ftepp, "define"); return ftepp_define(ftepp); diff --git a/tests/accumulate.qc b/tests/accumulate.qc index 46e0446..3fad9b7 100644 --- a/tests/accumulate.qc +++ b/tests/accumulate.qc @@ -1,10 +1,15 @@ -[[accumulate]] void foo() { +#define ACCUMULATE_FUNCTION(FUNC) \ + [[accumulate]] void FUNC () + +ACCUMULATE_FUNCTION(foo) { print("hello "); } -[[accumulate]] void foo() { + +ACCUMULATE_FUNCTION(foo) { print("accumulation "); } -[[accumulate]] void foo() { + +ACCUMULATE_FUNCTION(foo) { print("world\n"); }