]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/varargs.qc
Parameter omitting in fteqcc is disallowed.
[xonotic/gmqcc.git] / tests / varargs.qc
index 89cb5b8d6bf5c35781965177441ae6dca756d326..eceec4a5ac693a824ead8f758a262207515fb678 100644 (file)
@@ -1,7 +1,4 @@
-void(string...)   print  = #1;
-string(float)     ftos   = #2;
-
-void nbva(float a, string...count) {
+void nbva(float a, ...count) {
     print("You gave me ", ftos(count), " additional parameters\n");
     print("First: ", ...(0, string), "\n");
     print("You chose: ", ...(a, string), "\n");