]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update self removal plan
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 22 May 2016 05:28:35 +0000 (15:28 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 22 May 2016 05:28:35 +0000 (15:28 +1000)
qcsrc/lib/self.qh

index d028bc28fd370c653ee672d919385aec925dc45f..7822eefe3a64f779a0c2dee52fc310faa30576f6 100644 (file)
 
 // Step 5: this should work
 #if 0
+    #undef self
     #define self (0, this)
 #endif
 
-// Step 6: Remove SELFPARAM in favor of a parameter
+// Step 6: remove SELFPARAM, add parameters
+#if 0
+    #undef SELFPARAM
+#endif
+
+// Step 7: remove WITHSELF, no replacement
+#if 0
+    #undef WITHSELF
+    #define WITHSELF(value, block) block
+#endif
 
 .void(entity this) selftouch;
 void touch_self() { SELFPARAM(); this.selftouch(this); }