From: Dale Weiler Date: Fri, 18 Oct 2013 00:25:02 +0000 (-0400) Subject: Does this fix it? X-Git-Tag: 0.3.5~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c675ba8086e6a7d23524ce3ad4eef3f49d910a8e;p=xonotic%2Fgmqcc.git Does this fix it? --- diff --git a/ftepp.c b/ftepp.c index fe63fbf..36299b3 100644 --- a/ftepp.c +++ b/ftepp.c @@ -1513,6 +1513,8 @@ 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 008626d..46e0446 100644 --- a/tests/accumulate.qc +++ b/tests/accumulate.qc @@ -1,11 +1,9 @@ -void foo() { +[[accumulate]] void foo() { print("hello "); } - [[accumulate]] void foo() { print("accumulation "); } - [[accumulate]] void foo() { print("world\n"); }