]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/accumulate.qc
Merge branch 'arithmetic_exceptions' into cooking
[xonotic/gmqcc.git] / tests / accumulate.qc
index 46e04463f7747299e98010281af95f62e5594a2f..3fad9b705dd9b67e02d5c1445a9eee82c8a09957 100644 (file)
@@ -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");
 }