mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
15 lines
413 B
C++
15 lines
413 B
C++
|
void(string...) print = #1;
|
||
|
string(float) ftos = #2;
|
||
|
|
||
|
void nbva(float a, string...count) {
|
||
|
print("You gave me ", ftos(count), " additional parameters\n");
|
||
|
print("First: ", ...(0, string), "\n");
|
||
|
print("You chose: ", ...(a, string), "\n");
|
||
|
for (a = 0; a < count; ++a)
|
||
|
print("Vararg ", ftos(a), " = ", ...(a, string), "\n");
|
||
|
}
|
||
|
|
||
|
void main() {
|
||
|
nbva(1, "Hello", "You", "There");
|
||
|
}
|