X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=tests%2Faccumulate.qc;h=3fad9b705dd9b67e02d5c1445a9eee82c8a09957;hp=46e04463f7747299e98010281af95f62e5594a2f;hb=aabefd1bfe0c5b08bea9341c1394cfa8b96d754d;hpb=c675ba8086e6a7d23524ce3ad4eef3f49d910a8e 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"); }