From c210340081569b05999034e5b22e954965983e64 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Thu, 17 Oct 2013 20:34:16 -0400 Subject: [PATCH] Undo fix and actually use a macro in the accumulation test .. just incase. --- ftepp.c | 2 -- tests/accumulate.qc | 11 ++++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) 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"); } -- 2.39.2