]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/varargs2.qc
Implemented >< (vector cross product operator). Currently support for constants only.
[xonotic/gmqcc.git] / tests / varargs2.qc
1 void past8(float a, float b, float c, float d, ...count)
2 {
3     float i;
4     print("out:");
5     for (i = 0; i < count; ++i)
6         print(" ", ftos(...(i, float)), "");
7     print("\n");
8 }
9
10 void main() {
11     past8(1, 2, 3, 4, 10, 20, 30, 40, 50, 60, 70, 80);
12 }