X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=tests%2Faccumulate.qc;h=3fad9b705dd9b67e02d5c1445a9eee82c8a09957;hp=008626dbfdd80bada3f7a13b46f6075bc74be793;hb=2a00b386ba9995ea445c8a19dacb30936fa8942a;hpb=8a9c4edce877ee2ae2627d711d60a7e592695623 diff --git a/tests/accumulate.qc b/tests/accumulate.qc index 008626d..3fad9b7 100644 --- a/tests/accumulate.qc +++ b/tests/accumulate.qc @@ -1,12 +1,15 @@ -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"); }