]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/accumulate.qc
c++: ir_block::m_instr
[xonotic/gmqcc.git] / tests / accumulate.qc
index 008626dbfdd80bada3f7a13b46f6075bc74be793..3fad9b705dd9b67e02d5c1445a9eee82c8a09957 100644 (file)
@@ -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");
 }