Fixed IDL to match PR #1767.

This commit is contained in:
Бранимир Караџић
2019-05-14 21:32:36 -07:00
parent f2898511fd
commit f4e23fa80b
3 changed files with 27 additions and 22 deletions

View File

@@ -440,6 +440,11 @@ local function codetemp(func)
callfunc_c2c = func.cname
end
outCargs = table.concat(cargs, ", ")
if outCargs == "" then
outCargs = "void"
end
return {
RET = func.ret.fulltype,
CRET = func.ret.ctype,
@@ -447,7 +452,7 @@ local function codetemp(func)
CFUNCNAMEUPPER = func.cname:upper(),
CFUNCNAMECAML = underscorecase_to_camelcase(func.cname),
FUNCNAME = func.name,
CARGS = table.concat(cargs, ", "),
CARGS = outCargs,
CPPARGS = table.concat(args, ", "),
ARGS = ARGS,
CONVERSION = lines(conversion),