gmqcc/tests/rassign.qc
2013-05-29 11:29:52 +00:00

27 lines
448 B
C++

float f_float() {
return = 100.0f;
return = 200.0f;
return;
}
vector f_vector() {
vector foo;
foo.x = f_float();
foo.y = f_float();
foo.z = f_float();
return = foo;
return;
}
string f_string() {
return = "hello";
return = "world";
return;
}
void main() {
print(ftos(f_float()), "\n"); // 200.0f
print(vtos(f_vector()), "\n"); // '1 2 3'
print(f_string(), "\n"); // world
}