]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Does this fix it?
authorDale Weiler <killfieldengine@gmail.com>
Fri, 18 Oct 2013 00:25:02 +0000 (20:25 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 18 Oct 2013 00:25:02 +0000 (20:25 -0400)
ftepp.c
tests/accumulate.qc

diff --git a/ftepp.c b/ftepp.c
index fe63fbf656cb9c172ee060abf7f68b3d4a8aaa01..36299b35ea05e72ca91df0de7c1928ad74f0f50c 100644 (file)
--- 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);
index 008626dbfdd80bada3f7a13b46f6075bc74be793..46e04463f7747299e98010281af95f62e5594a2f 100644 (file)
@@ -1,11 +1,9 @@
-void foo() {
+[[accumulate]] void foo() {
     print("hello ");
 }
-
 [[accumulate]] void foo() {
     print("accumulation ");
 }
-
 [[accumulate]] void foo() {
     print("world\n");
 }