]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/uninit.qc
Tests for the previous vector-liferange change
[xonotic/gmqcc.git] / tests / uninit.qc
1 void   print(...)    = #1;
2 string ftos (float)  = #2;
3 string vtos (vector) = #5;
4
5 vector main(float a, vector vin) {
6     vector v;
7
8     if (a < 4) {
9         v = vin;
10         v_x += 1;
11         v_y += 1;
12         v_z += 1;
13         return v;
14     }
15     else if (a < 5) {
16         v_x = 3;
17         v_y = 3;
18 #ifdef UNINIT
19         print(vtos(v), "\n");
20 #endif
21         v_z = 3;
22         return v;
23     }
24     return '0 0 0';
25 }