]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Simpler function accumulation. Thanks, graphitemaster.
authorRudolf Polzer <divverent@xonotic.org>
Fri, 18 Oct 2013 00:38:07 +0000 (02:38 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 18 Oct 2013 01:03:37 +0000 (03:03 +0200)
qcsrc/client/progs.src
qcsrc/common/if-this-file-errors-scroll-up-and-fix-the-warnings.fteqccfail [deleted file]
qcsrc/common/util.qh
qcsrc/menu/progs.src
qcsrc/server/progs.src

index 114f0a5b5c77fdd666db5ae4953b653fa40302e5..fa61033f653b48f75947c6b95ea7a2e062ae8f0b 100644 (file)
@@ -121,5 +121,3 @@ tturrets.qc
 
 player_skeleton.qc
 ../common/animdecide.qc
-
-../common/if-this-file-errors-scroll-up-and-fix-the-warnings.fteqccfail
diff --git a/qcsrc/common/if-this-file-errors-scroll-up-and-fix-the-warnings.fteqccfail b/qcsrc/common/if-this-file-errors-scroll-up-and-fix-the-warnings.fteqccfail
deleted file mode 100644 (file)
index e69de29..0000000
index d575bbfddbd3c32c3c70c9b210ebe6c76117b10c..166af391e9574b7d6e5e7f7867bab05ab43c2e7f 100644 (file)
@@ -6,6 +6,12 @@
 // a dummy macro that prevents the "hanging ;" warning
 #define ENDS_WITH_CURLY_BRACE
 
+#ifdef GMQCC
+# define ACCUMULATE_FUNCTION(func,otherfunc) \
+       [[accumulate]] void func() { otherfunc(); }
+# define CALL_ACCUMULATED_FUNCTION(func) \
+       func()
+#else
 #ifdef HAVE_YO_DAWG_CPP
 // TODO make ascii art pic of xzibit
 // YO DAWG!
@@ -41,6 +47,7 @@ void ACCUMULATE_call(string func)
 # define CALL_ACCUMULATED_FUNCTION(func) \
        ACCUMULATE_call(#func)
 #endif
+#endif
 
 // used for simplifying ACCUMULATE_FUNCTIONs
 #define SET_FIRST_OR_LAST(input,first,count) if(!input) { input = (first + count); }
index 3036278c1fcfbe09ed31da9f56795e2be7f8dbe6..4900b9d96bb52db193c8aaf82771634c94279755 100644 (file)
@@ -54,5 +54,3 @@ xonotic/util.qc
 ../common/urllib.qc
 
 ../warpzonelib/mathlib.qc
-
-../common/if-this-file-errors-scroll-up-and-fix-the-warnings.fteqccfail
index e9e9a4b8c89e3fdfce2209e264df815a634b16d2..8980f77594776475103b94c0d69d624861512991 100644 (file)
@@ -269,5 +269,3 @@ mutators/mutator_campcheck.qc
 ../common/test.qc
 ../common/util.qc
 ../common/notifications.qc
-
-../common/if-this-file-errors-scroll-up-and-fix-the-warnings.fteqccfail