]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/vector-init.qc
Add expressions for builtins test
[xonotic/gmqcc.git] / tests / vector-init.qc
1 void main() {
2     vector v;
3
4     //v_x = 0;
5     //v_y = 0;
6     //v_z = 0;
7 #ifdef INIT_BY_VECTOR
8     v = '3 4 5';
9 #elifdef INIT_BY_COMPONENTS
10     v_x = 3;
11     v_y = 4;
12     v_z = 5;
13 #elifdef INIT_PARTS
14     v_z = 5;
15 #endif
16
17     print(ftos(v_y), "\n");
18     print(ftos(v_x), "\n");
19     print(ftos(v_z), "\n");
20     print(vtos(v), "\n");
21 }