gmqcc/tests/calls.qc
2012-11-17 08:31:23 +00:00

14 lines
368 B
C++

void(string, ...) print = #1;
string(float) ftos = #2;
float(float x, float y, float z) sum = {
return x + y + z;
};
void(float a, float b, float c) main = {
local float f;
f = sum(sum(a, sum(a, b, c), c),
sum(sum(sum(a, b, c), b, sum(a, b, c)), b, sum(a, b, sum(a, b, c))),
sum(sum(a, b, c), b, c));
print(ftos(f), "\n");
};