]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/pointlife.qc
Some style fixes for tests
[xonotic/gmqcc.git] / tests / pointlife.qc
index b37e62abfd5b95560e141637c0a2e77b7a7ddff1..5225a7c6ae2c11c0d88582363beac197d9dacc7f 100644 (file)
@@ -1,21 +1,19 @@
-void print(...) = #1;
-
 var float foo = 0;
 
 void funcall() {}
 void bar(string) {}
 
 void main(string str) {
-       string pl;
+    string pl;
 
-       if (foo)
-               return; // this is a block wher 'str' doesn't live
-                       // so the point-life will not overlap with str
-       pl = "Got overwritten!\n"; // pl point-life
+    if (foo)
+        return; // this is a block wher 'str' doesn't live
+                // so the point-life will not overlap with str
+    pl = "Got overwritten!\n"; // pl point-life
 
-       print(str);
+    print(str);
 
-       pl = "Kill the lifrange here"; // pl life stops
-       funcall(); // Now lock pl in case we have -Oglobal-temps
-       bar(pl); // pl life starts here now
+    pl = "Kill the lifrange here"; // pl life stops
+    funcall(); // Now lock pl in case we have -Oglobal-temps
+    bar(pl); // pl life starts here now
 }