mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-11 04:51:24 +00:00
26 lines
415 B
C++
26 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");
|
||
|
}
|