gmqcc/tests/varargs2.qc
2013-02-26 16:39:28 +01:00

12 lines
259 B
C++

void past8(float a, float b, float c, float d, ...count)
{
float i;
print("out:");
for (i = 0; i < count; ++i)
print(" ", ftos(...(i, float)), "");
print("\n");
}
void main() {
past8(1, 2, 3, 4, 10, 20, 30, 40, 50, 60, 70, 80);
}