gmqcc/tests/vector-init.qc
2012-12-20 14:12:22 +01:00

25 lines
415 B
C++

void print(...) = #1;
string ftos (float) = #2;
string vtos (vector) = #5;
void main() {
vector v;
//v_x = 0;
//v_y = 0;
//v_z = 0;
#ifdef INIT_BY_VECTOR
v = '3 4 5';
#elifdef INIT_BY_COMPONENTS
v_x = 3;
v_y = 4;
v_z = 5;
#elifdef INIT_PARTS
v_z = 5;
#endif
print(ftos(v_y), "\n");
print(ftos(v_x), "\n");
print(ftos(v_z), "\n");
print(vtos(v), "\n");
}