Browse Source

gendynapi.py: don't generate parameter for '...' - corrected

Sylvain 2 years ago
parent
commit
cce1341b5b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/dynapi/gendynapi.py

+ 4 - 0
src/dynapi/gendynapi.py

@@ -403,6 +403,10 @@ def add_dyn_api(proc):
         if argtype == "void":
             continue
 
+        # Special case, '...' has no parameter name
+        if argtype == "...":
+            continue
+
         # Var name: a, b, c, ...
         varname = chr(i)
         i += 1