]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/calls.qc
Merge branch 'master' into test-suite
[xonotic/gmqcc.git] / tests / calls.qc
1 void(string, ...) print = #1;
2 string(float) ftos = #2;
3
4 float(float x, float y, float z) sum = {
5     return x + y + z;
6 };
7
8 void(float a, float b, float c) main = {
9     local float f;
10     f = sum(sum(a, sum(a, b, c), c),
11             sum(sum(sum(a, b, c), b, sum(a, b, c)), b, sum(a, b, sum(a, b, c))),
12             sum(sum(a, b, c), b, c));
13     print(ftos(f), "\n");
14 };